Back

Template Source: media/news_detail.html

{% extends 'base.html' %} {% block extra_css %} <meta property="og:image" content="http://sustainabledesign.co.za{{ object.get_460x420_url.split|join:"%20"}}" /> <meta property="og:image:width" content="460"/> <meta property="og:image:height" content="420"/> {% endblock %} {% block title %}{{ object.title }}{% endblock %} {% block header %} {% include 'includes/top_nav.html' with on="media" %} {% endblock %} {% block content %} <div class="content"> <div class="page sub"> {% include 'media/includes/menu.html' with on='news' %} <div class="container"> <div class="flat"> <h2>{{ object.title }}</h2> <h3>Published at: {{ object.publish_at|date:"j F Y" }}</h3> {{ object.rich_content|safe }} <p><a href="{% url 'news' %}">&laquo; Back to News</a></p> <div class="social"> <div class="tw"><a href="http://twitter.com/share?url={{url}}" class="twitter-mention-button" data-show-count="false">Tweet to @4SA4tmrw</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></div> <div class="fb"><div class="fb-like" data-href="https://www.facebook.com/SustainableDesignZA/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div></div> </div><!--/social--> </div><!--/flat--> </div><!--/container--> </div><!--/page--> </div><!--/content--> {% endblock %} {% block bottom_js %} <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.7"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> {% endblock %}