1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2024-11-23 03:39:03 +00:00
pelican-red/templates/index.html

25 lines
689 B
HTML
Raw Normal View History

{% 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 %}