Skip to content

Commit

Permalink
Added links to Newscoop Cookbook and contact page
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhjames committed Sep 27, 2013
1 parent d7c3866 commit 8d4c3b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <a href="http://manuals.sourcefabric.org/">Newscoop Cookbook</a>. If you would like to contribute your tips and tricks to this book, please <a href="http://www.sourcefabric.org/en/about/contactus/">contact Sourcefabric.</a>

0 comments on commit 8d4c3b3

Please sign in to comment.