Mercurial > public > bravenewsurf
comparison 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 |
comparison
equal
deleted
inserted
replaced
39:b9d6f6d930a9 | 40:5c0f9d80442e |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | 2 {% load url from future %} |
3 {% load core_tags reviews_tags %} | 3 {% load core_tags reviews_tags news_tags%} |
4 {% block title %}Home{% endblock %} | 4 {% block title %}Home{% endblock %} |
5 {% block custom_meta %} | 5 {% block custom_meta %} |
6 <meta property="og:title" content="Brave New Surf" /> | 6 <meta property="og:title" content="Brave New Surf" /> |
7 <meta property="og:type" content="album" /> | 7 <meta property="og:type" content="album" /> |
8 <meta property="og:url" content="http://bravenewsurf.com/" /> | 8 <meta property="og:url" content="http://bravenewsurf.com/" /> |
83 {% social_sharing 'Brave New Surf' 'http://bravenewsurf.com' %} | 83 {% social_sharing 'Brave New Surf' 'http://bravenewsurf.com' %} |
84 </div> | 84 </div> |
85 <div class="span7"> | 85 <div class="span7"> |
86 <div class="alert-message block-message info"> | 86 <div class="alert-message block-message info"> |
87 <h3>News</h3> | 87 <h3>News</h3> |
88 <p>This box shows links to the 5 most recent news items.</p> | 88 {% list_news 5 %} |
89 <ul> | |
90 <li><a href="#">Headline number 3 goes here.</a> - <small>Oct. 29, 2011</small></li> | |
91 <li><a href="#">Headline number 2 goes here.</a> - <small>Oct. 12, 2011</small></li> | |
92 <li><a href="#">Headline number 1 goes here.</a> - <small>Oct. 2, 2011</small></li> | |
93 </ul> | |
94 <p><br /><a class="btn default" href="{% url 'news' %}">All News »</a></p> | 89 <p><br /><a class="btn default" href="{% url 'news' %}">All News »</a></p> |
95 </div> | 90 </div> |
96 <div class="alert-message block-message info"> | 91 <div class="alert-message block-message info"> |
97 <h3>Reviews</h3> | 92 <h3>Reviews</h3> |
98 {% list_reviews 5 %} | 93 {% list_reviews 5 %} |