Mercurial > public > sg101
view gpp/templates/news/index.html @ 486:7854d75427af
For #233, add a meta description field for news stories. This field will get put in the open graph meta tag for better descriptions when shared on social media sites.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 18 Oct 2011 23:23:42 +0000 |
parents | bbbc357ac5f3 |
children | f0f3966ea44f |
line wrap: on
line source
{% extends 'news/base.html' %} {% load script_tags %} {% block title %}News: {{ title }}{% endblock %} {% block news_css %} <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" /> {% endblock %} {% block custom_js %} {% script_tags "social" %} {% endblock %} {% block news_content %} <h3>{{ title }}</h3> {% if page.object_list %} {% include 'core/pagination.html' %} {% for story in page.object_list %} {% include 'news/story_summary.html' %} {% endfor %} {% include 'core/pagination.html' %} <div style="clear:right;"></div> {% else %} <p>No news at this time.</p> {% endif %} {% endblock %}