1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2026-01-23 15:11:38 +00:00

Update templates

The following updates are made:
- index.html now lists the site description along with X articles
- _list_item.html universalizes code for iterating over the articles
- _site_social.html is merged into base.html
- _google_search.html is added for custom search support
- _gosquared.html, _google_analytics.html have minor formatting changes
- archives.html displays a one page list of all articles
- period_archives.html is removed as it is not planned for implementation atm
- tags.html general clean up and tweaks
- base.html now has
  - full rss/atom feed support
  - disqus comment count support on links (not used yet)
  - blog links in aside
  - search in aside
This commit is contained in:
2013-07-29 05:58:17 -04:00
parent b5bdbaf332
commit 7df1c88d8c
10 changed files with 250 additions and 130 deletions

View File

@@ -1,10 +1,24 @@
{% extends 'base.html' %}
{% block title %}{{ super() }} - Archives{% endblock %}
{% block content_title %}Archives{% endblock %}
{% block content_title %}<a href="{{ SITEURL }}/archives.html" rel="bookmark" title="Permalink to archives">Archives</a>{% endblock %}
{% block content %}
<ul class="no-bullet">
<dl class="article-list">
{% for article in articles %}
<li>{{ article.title|title }} - {{ article.date }}</li>
<dt><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dt>
<dd>Published: <abbr class="published" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</abbr> by <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a></dd>
{% if article.modified %}
<dd>Last modified on: <abbr class="modified" title="{{article.modified}}">{{ article.modified }}</abbr></dd>
{% endif %}
<dd>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></dd>
{% if article.tags %}
<dd>Tags:
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{tag}}</a>
{% if not loop.last %}
,
{% endif %}
{% endfor %}</dd>
{% endif %}
{% endfor %}
</ul>
</dl>
{% endblock %}