aboutsummaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-07 19:42:04 +0000
committerng0 <ng0@n0.is>2019-11-07 19:42:04 +0000
commitefc09a5d33f51c355ccf259c378d0227e2049d79 (patch)
tree29eecf11caef41658d548118c9b9d43706688899 /news
parentcccc4e317b2851f24ee43f21c3b1517c0b4ea223 (diff)
downloadwww-efc09a5d33f51c355ccf259c378d0227e2049d79.tar.gz
www-efc09a5d33f51c355ccf259c378d0227e2049d79.zip
use macro for news preview, candidate for near future subrepo.
Diffstat (limited to 'news')
-rw-r--r--news/index.html.j213
1 files changed, 2 insertions, 11 deletions
diff --git a/news/index.html.j2 b/news/index.html.j2
index 814066ec..8c58d9f1 100644
--- a/news/index.html.j2
+++ b/news/index.html.j2
@@ -1,5 +1,6 @@
1{% extends "common/base.j2" %} 1{% extends "common/base.j2" %}
2{% block body_content %} 2{% block body_content %}
3 {% import 'inc/news.macro.j2' as news %}
3 <div class="container-fluid"> 4 <div class="container-fluid">
4 <div class="container"> 5 <div class="container">
5 <article> 6 <article>
@@ -17,17 +18,7 @@
17 <div class="row"> 18 <div class="row">
18 {% for item in newsdata %} 19 {% for item in newsdata %}
19 <div class="col-lg-4"> 20 <div class="col-lg-4">
20 <section class="item-preview"> 21 {{ news.newspreview(item) }}
21 <header>
22 <h3>{{ item['title'] }}</h3>
23 <p class="item-date">
24 {{ item['date'] }}
25 </p>
26 </header>
27 <p class="item-abstract">
28 {{ item['abstract'] }} [<a href="{{ item['page'] }}" title="{{ item['date']}}">read more</a>]
29 </p>
30 </section>
31 </div> 22 </div>
32 {% endfor %} 23 {% endfor %}
33 </div> 24 </div>