diff options
-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 %} |