Sat, 19 Mar 2016 00:50:44 +0100
[theme] add '(last updated on xxx)' in article timestamps when available
{% extends "base.html" %} {% block title %}{{ article.title }} - {{SITENAME}}{% endblock title %} {% block pageheader %} <div class="hp-header-inner"> <div class="page-header"> <div class="content-header"> <div id="title-block"> <h1> <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1> </div> </div> </div> </div> {% endblock %} {% block content %} <div class="content-article"> <header class="header-article"> <div class="read-more">Posted on {{ article.locale_date}}{% if article.locale_modified and article.locale_modified != article.locale_date %} <span>(last updated on {{ article.locale_modified }})</span> {% endif %}</div> </header> <section class='article'> <div class="entry-content"> {{ article.content }} </div> </section> <footer class="footer-article"> <div class="tags-and-categories">Filed under <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> | Tagged: {% if article.tags %}{% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} </a>{% endfor %}{% endif %} | <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">Permalink</a> </div> <!-- metaldata {% for m in article.Metaldata %} Rock on! {{ m }} {% endfor %} --> </footer> <!-- disqus {{ DISQUS_SITENAME }} --> {% include 'article_discus.html' %} </div> {% endblock %} {% block sidecontent %} {% if article.series %} <h3>{{article.series.name}}</h3> <ol class="parts"> {% for part_article in article.series.all %} <li {% if part_article == article %}class="active"{% endif %}> <a href='{{ SITEURL }}/{{ part_article.url }}'>{{ part_article.title }}</a> </li> {% endfor %} </ol> {% endif %} {% if article.related_posts %} <h3>See also</h3> <ol class="parts"> {% for related_article in article.related_posts %} <li> <a href='{{ SITEURL }}/{{ related_article.url }}'>{{ related_article.title }}</a> </li> {% endfor %} </ol> {% else %} <h3> No related posts </h3> {% endif %} {% endblock %}