diff options
author | David Robillard <d@drobilla.net> | 2014-11-23 00:29:11 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-23 00:29:11 -0500 |
commit | 9839a49f36ee0b637b08b76e8ed5560409c9db3b (patch) | |
tree | a232b3860ab733b2fe9a6fd4555d4697299ce9a8 /themes/lv2/templates/index.html | |
parent | 4e86fd59522c70b3654e5920a60ce748640f5a2c (diff) | |
download | lv2site-9839a49f36ee0b637b08b76e8ed5560409c9db3b.tar.xz |
Simplify theme.
Diffstat (limited to 'themes/lv2/templates/index.html')
-rw-r--r-- | themes/lv2/templates/index.html | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/themes/lv2/templates/index.html b/themes/lv2/templates/index.html index 29ba7d6..0fad03c 100644 --- a/themes/lv2/templates/index.html +++ b/themes/lv2/templates/index.html @@ -1,4 +1,35 @@ -{% extends "article_list.html" %} +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} + {% if articles %} + {% for article in articles %} -{% block canonical_rel %}<link rel="canonical" href="{{ SITEURL }}">{% endblock %} + {# First item #} + {% if loop.first %} + <header> + <h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1> + <span id="sitename"><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> ⋅</span> + {% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %} + </header> + <article> + {{ article.content }} + </article> + {% if loop.length > 1 %} + <section id="article-list"> + <h2>Tous les articles</h2> + <ol> + {% endif %} + {# other items #} + {% else %} + <li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></li> + {% endif %} + {% endfor %} + {% if loop.length > 1 %} + </ol> + </section><!-- #article-list --> + {% endif %} + {% else %} + No articles. + {% endif %} +{% endblock content %} |