mirror of
https://github.com/arsenetar/pelican-red.git
synced 2024-11-22 11:19:02 +00:00
Andrew Senetar
7df1c88d8c
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
25 lines
689 B
HTML
25 lines
689 B
HTML
{% extends 'base.html' %}
|
|
{% 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 %}
|