From 8d4c3b398d9abcf85758fb2d8c0747230c5cbe4d Mon Sep 17 00:00:00 2001 From: Daniel James Date: Fri, 27 Sep 2013 11:38:17 +0100 Subject: [PATCH] Added links to Newscoop Cookbook and contact page --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ee2c24c..7fa01ff 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,9 @@ Next, we'll list articles from the "Front page" featured article playlist, a seq The next part of the code is for the article headline, which we put in a <div> because we want to style it with CSS. The id of this div should make its function pretty obvious when we are editing the general.css file, found in the _css folder. <div id="frontpage-headline"> + <a href="{{ uri options="article" }}"><h1>{{ $gimme->article->name }}</h1></a> + </div> See how we're using two sets of curly brackets on the line above? Within the element created by the <h1> and </h1> tags we are asking Newscoop for the article name to create our headline, which could be any line of text the editor wants to put there at that moment. We're also wrapping the <h1> element with an <a> element, but this time we're using the curly brackets to get the URI of this article. So we now have a styled headline, and a link to the article inside the publication. @@ -38,3 +40,8 @@ Typically we may wish to provide a shortened version of the story on the front p In The Stun, 404.tpl is an empty file. You can put any message to readers that you want in this template, but with an empty 404 template Newscoop will re-direct all requests for non-existent pages to the publication front page, which may be what you wanted anyway. We hope you have fun playing with The Stun, and if you create new versions of it, please let us take a look at what you've come up with! + +Further reading +=============== + +The reference text for creating Newscoop themes is the Newscoop Cookbook. If you would like to contribute your tips and tricks to this book, please contact Sourcefabric.