Mercurial > public > sg101
diff gpp/templates/news/story.html @ 484:bbbc357ac5f3
For #233; first commit for adding social media sharing buttons to news stories.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 18 Oct 2011 00:04:37 +0000 |
parents | c3cc431b7fb9 |
children | f0f3966ea44f |
line wrap: on
line diff
--- a/gpp/templates/news/story.html Sat Oct 15 22:04:18 2011 +0000 +++ b/gpp/templates/news/story.html Tue Oct 18 00:04:37 2011 +0000 @@ -3,7 +3,11 @@ {% load tagging_tags %} {% load comment_tags %} {% load script_tags %} +{% load core_tags %} {% block title %}News: {{ story.title }}{% endblock %} +{% block custom_meta %} +{% open_graph_meta_tags story %} +{% endblock %} {% block news_css %} <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/comments.css" /> {% endblock %} @@ -12,6 +16,7 @@ {% script_tags "markitup jquery-ui" %} <script type="text/javascript" src="{{ STATIC_URL }}js/comments.js"></script> {% endif %} +{% script_tags "social" %} {% endblock %} {% block news_content %} <div class="solid-background"> @@ -48,6 +53,7 @@ </ul> </div> {% endif %} + {% social_sharing story.title story.get_absolute_url %} </div> {% get_comment_count for story as comment_count %} <p>This story has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p>