|
@@ -5,9 +5,9 @@
|
|
|
{% endblock title %}
|
|
|
|
|
|
{% block head_description %}
|
|
|
- {% if article.summary %}
|
|
|
- {{ article.summary|striptags }}
|
|
|
- {% endif %}
|
|
|
+{% if article.summary %}
|
|
|
+{{ article.summary|striptags }}
|
|
|
+{% endif %}
|
|
|
{% endblock head_description %}
|
|
|
{% block content %}
|
|
|
<article>
|
|
@@ -18,77 +18,77 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="row-fluid">
|
|
|
- {% if article.toc %}
|
|
|
- <div class="span2 table-of-content">
|
|
|
- <nav>
|
|
|
- <h4>Contents</h4>
|
|
|
- {{ article.toc }}
|
|
|
- </nav>
|
|
|
- </div>
|
|
|
- <div class="span8 article-content">
|
|
|
+ {% if article.toc %}
|
|
|
+ <div class="span2 table-of-content">
|
|
|
+ <nav>
|
|
|
+ <h4>Contents</h4>
|
|
|
+ {{ article.toc }}
|
|
|
+ </nav>
|
|
|
+ </div>
|
|
|
+ <div class="span8 article-content">
|
|
|
{% else %}
|
|
|
- <div class="span8 offset2 article-content">
|
|
|
- {% endif %}
|
|
|
+ <div class="span8 offset2 article-content">
|
|
|
+ {% endif %}
|
|
|
|
|
|
- {{ article.content }}
|
|
|
- <aside>
|
|
|
- {% for an_artcile in dates %}
|
|
|
- {% if an_artcile.url == article.url %}
|
|
|
- {% set index = loop.index0 %}
|
|
|
- {% if not loop.first %}
|
|
|
- {% set next_article = dates[index-1] %}
|
|
|
- {% endif %}
|
|
|
- {% if not loop.last %}
|
|
|
- {% set previous_article = dates[index+1] %}
|
|
|
- {% endif %}
|
|
|
- <nav>
|
|
|
- <ul class="articles_timeline">
|
|
|
- {% if previous_article %}
|
|
|
- <li class="previous_article">« <a href="/{{ previous_article.url }}" title="Previous: {{ previous_article.title }}">{{ previous_article.title }}</a></li>
|
|
|
+ {{ article.content }}
|
|
|
+ <aside>
|
|
|
+ {% for an_artcile in dates %}
|
|
|
+ {% if an_artcile.url == article.url %}
|
|
|
+ {% set index = loop.index0 %}
|
|
|
+ {% if not loop.first %}
|
|
|
+ {% set next_article = dates[index-1] %}
|
|
|
{% endif %}
|
|
|
- {% if next_article %}
|
|
|
- <li class="next_article"><a href="/{{ next_article.url }}" title="Next: {{ next_article.title }}">{{ next_article.title }}</a> »</li>
|
|
|
+ {% if not loop.last %}
|
|
|
+ {% set previous_article = dates[index+1] %}
|
|
|
+ {% endif %}
|
|
|
+ <nav>
|
|
|
+ <ul class="articles_timeline">
|
|
|
+ {% if previous_article %}
|
|
|
+ <li class="previous_article">« <a href="/{{ previous_article.url }}" title="Previous: {{ previous_article.title }}">{{ previous_article.title }}</a></li>
|
|
|
+ {% endif %}
|
|
|
+ {% if next_article %}
|
|
|
+ <li class="next_article"><a href="/{{ next_article.url }}" title="Next: {{ next_article.title }}">{{ next_article.title }}</a> »</li>
|
|
|
+ {% endif %}
|
|
|
+ </ul>
|
|
|
+ </nav>
|
|
|
{% endif %}
|
|
|
- </ul>
|
|
|
- </nav>
|
|
|
- {% endif %}
|
|
|
- {% endfor %}
|
|
|
- </aside>
|
|
|
- {% include 'comments.html' %}
|
|
|
- </div>
|
|
|
- <section>
|
|
|
- <div class="span2" style="float:right">
|
|
|
- {% if article.date %}
|
|
|
- <h4>Published</h4>
|
|
|
- {% set day = article.date.strftime('%d')|int %}
|
|
|
- <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.date.strftime('%b') }} {{ day }} {{- article.date.strftime(', %Y') }}</time>
|
|
|
- {% endif %}
|
|
|
- {% if article.modified %}
|
|
|
- <h4>Last Updated</h4>
|
|
|
- {{ article.modified }}
|
|
|
- {% endif %}
|
|
|
- {% if article.category %}
|
|
|
- <h4>Category</h4>
|
|
|
- <a class="category-link" href="/categories.html#{{ category|replace(' ', '-')|e }}-ref">{{ article.category }}</a>
|
|
|
- {% endif %}
|
|
|
- {% if article.tags %}
|
|
|
- <h4>Tags</h4>
|
|
|
- <ul class="list-of-tags tags-in-article">
|
|
|
- {% for tag in article.tags %}
|
|
|
- <li><a href="/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}
|
|
|
- {% for aTag, tagged_articles in tags if aTag == tag %}
|
|
|
- <span>{{ tagged_articles|count }}</span>
|
|
|
- {% endfor %}</a></li>
|
|
|
{% endfor %}
|
|
|
- </ul>
|
|
|
- {% endif %}
|
|
|
+ </aside>
|
|
|
+ {% include 'comments.html' %}
|
|
|
+ </div>
|
|
|
+ <section>
|
|
|
+ <div class="span2" style="float:right">
|
|
|
+ {% if article.date %}
|
|
|
+ <h4>Published</h4>
|
|
|
+ {% set day = article.date.strftime('%d')|int %}
|
|
|
+ <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.date.strftime('%b') }} {{ day }} {{- article.date.strftime(', %Y') }}</time>
|
|
|
+ {% endif %}
|
|
|
+ {% if article.modified %}
|
|
|
+ <h4>Last Updated</h4>
|
|
|
+ {{ article.modified }}
|
|
|
+ {% endif %}
|
|
|
+ {% if article.category %}
|
|
|
+ <h4>Category</h4>
|
|
|
+ <a class="category-link" href="/categories.html#{{ category|replace(' ', '-')|e }}-ref">{{ article.category }}</a>
|
|
|
+ {% endif %}
|
|
|
+ {% if article.tags %}
|
|
|
+ <h4>Tags</h4>
|
|
|
+ <ul class="list-of-tags tags-in-article">
|
|
|
+ {% for tag in article.tags %}
|
|
|
+ <li><a href="/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}
|
|
|
+ {% for aTag, tagged_articles in tags if aTag == tag %}
|
|
|
+ <span>{{ tagged_articles|count }}</span>
|
|
|
+ {% endfor %}</a></li>
|
|
|
+ {% endfor %}
|
|
|
+ </ul>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
+ </section>
|
|
|
</div>
|
|
|
- </section>
|
|
|
-</div>
|
|
|
-</article>
|
|
|
-{% endblock content %}
|
|
|
+ </article>
|
|
|
+ {% endblock content %}
|
|
|
|
|
|
-{% block script %}
|
|
|
-{{ super() }}
|
|
|
-{% include 'disqus_script_count.html' %}
|
|
|
-{% endblock script %}
|
|
|
+ {% block script %}
|
|
|
+ {{ super() }}
|
|
|
+ {% include 'disqus_script_count.html' %}
|
|
|
+ {% endblock script %}
|