diff options
author | David Robillard <d@drobilla.net> | 2019-03-24 23:56:10 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-24 23:56:22 +0100 |
commit | c8a2495d2ebe4120be939af5cd8b2c4b565b1afd (patch) | |
tree | 2855d2cf46205a2e1806189865561fdb1f21e8a2 | |
parent | 7e3e71c7a83d1c295aeaee0cc252463ec31ec1a1 (diff) | |
download | lv2site-c8a2495d2ebe4120be939af5cd8b2c4b565b1afd.tar.xz |
Add missing news template
-rw-r--r-- | themes/lv2/templates/news.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/themes/lv2/templates/news.html b/themes/lv2/templates/news.html new file mode 100644 index 0000000..eb2dc21 --- /dev/null +++ b/themes/lv2/templates/news.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} + <h1>News</h1> + {% if 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> + {% if article.tags %} + in + {% 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 %} + + {% include "pagination.html" %} + +{% endblock content %} |