Mercurial > public > bravenewsurf
diff bns_website/templates/home.html @ 40:5c0f9d80442e
I added a news template tag that's a blatant rip off of Chris' review one.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Sun, 06 Nov 2011 21:16:22 -0600 |
parents | 37d9b6b1a097 |
children | b60c84d52afa |
line wrap: on
line diff
--- a/bns_website/templates/home.html Sun Nov 06 20:28:25 2011 -0600 +++ b/bns_website/templates/home.html Sun Nov 06 21:16:22 2011 -0600 @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% load url from future %} -{% load core_tags reviews_tags %} +{% load core_tags reviews_tags news_tags%} {% block title %}Home{% endblock %} {% block custom_meta %} <meta property="og:title" content="Brave New Surf" /> @@ -85,12 +85,7 @@ <div class="span7"> <div class="alert-message block-message info"> <h3>News</h3> - <p>This box shows links to the 5 most recent news items.</p> - <ul> - <li><a href="#">Headline number 3 goes here.</a> - <small>Oct. 29, 2011</small></li> - <li><a href="#">Headline number 2 goes here.</a> - <small>Oct. 12, 2011</small></li> - <li><a href="#">Headline number 1 goes here.</a> - <small>Oct. 2, 2011</small></li> - </ul> + {% list_news 5 %} <p><br /><a class="btn default" href="{% url 'news' %}">All News »</a></p> </div> <div class="alert-message block-message info">