diff options
author | David Robillard <d@drobilla.net> | 2019-03-24 23:42:23 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-24 23:42:59 +0100 |
commit | b7caba4e99effe0aa8f2fca74dc33a2f4495924a (patch) | |
tree | 92184e9a7e94bc0d6ebd85d99d4abb00737d501b /themes/lv2/templates/index.html | |
parent | 198cb31eddc79ff23e02a4f0677b72e112aadd7e (diff) | |
download | lv2site-b7caba4e99effe0aa8f2fca74dc33a2f4495924a.tar.xz |
Use lighter style consistent with documentation
Diffstat (limited to 'themes/lv2/templates/index.html')
-rw-r--r-- | themes/lv2/templates/index.html | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/themes/lv2/templates/index.html b/themes/lv2/templates/index.html index 0fad03c..4a2822a 100644 --- a/themes/lv2/templates/index.html +++ b/themes/lv2/templates/index.html @@ -1,35 +1,32 @@ {% extends "base.html" %} {% block content_title %}{% endblock %} -{% block content %} +{% block content %} {% if articles %} - {% for article in articles %} + {% for article in articles_page.object_list %} + <div class="article" itemscope itemtype="http://schema.org/BlogPosting"> + <a href="{{ SITEURL }}/{{ article.url }}"> + <h2 itemprop="name headline">{{ article.title }}</h2> + </a> + <span class="postmeta"> + Posted on <time datetime="{{ article.date.isoformat() }}" itemprop="datePublished">{{ article.date.strftime('%Y-%m-%d %H:%M') }}</time> + in + {% if article.tags %} + {% for tag in article.tags %} + <span itemprop="keywords"> + <a href="{{ SITEURL }}/{{ tag.url }}" rel="tag">{{ tag }}</a> + {% if not loop.last %} + , + {% endif %} + </span> + {% endfor %} + {% endif %} + </span> + <div class="summary">{{ article.summary }}</div> + </div> + <hr> + {% endfor %} {# For article #} + {% endif %} - {# 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> + {% include "pagination.html" %} - <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 %} |