1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2026-02-01 09:31: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,5 +1,24 @@
{% extends 'base.html' %}
{% block content %}
{% block content_title %}
<a href="{{ SITEURL }}/index.html" rel="bookmark">{{ SITENAME }}</a>
{% endblock %}
{% block content %}
<p>{{ SITE_DESCR }}</p>
{% if articles and ARTICLES_ON_INDEX %}
<h2>Recent Articles:</h2>
<ul class="article-list">
{% for article in articles[0:ARTICLES_ON_INDEX] %}
{% include '_list_item.html' %}
{% endfor %}
</ul>
<p><a href="{{ SITEURL }}/archives.html">View more articles in the Archives...</a></p>
{% endif %}
{% if pages and PAGES_ON_INDEX %}
<h2>Pages:</h2>
<ul class="inline-list">
{% for page in pages %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}