summaryrefslogtreecommitdiff
path: root/theme/cccevents/templates/news.html
diff options
context:
space:
mode:
authorHans-Peter Oeri <hp@oeri.ch>2018-10-25 11:32:42 +0000
committerHans-Peter Oeri <hp@oeri.ch>2018-10-25 11:32:42 +0000
commitff89112e87a34156fd0d4a10a10fd43b6f525cbd (patch)
tree7bf3bcf334051dbf2f8d96981b8d199470064eac /theme/cccevents/templates/news.html
parent17a536b7ffba296f1fc71337ce8aa2910f5ed3fc (diff)
parentc8cfe63aac73a92ae02354a5306ca5480808daff (diff)
Merge branch 'redohp' into 'master'
re-do site in schiedsstelle layout See merge request KampfCaspar/help.ccc.de!1
Diffstat (limited to 'theme/cccevents/templates/news.html')
-rw-r--r--theme/cccevents/templates/news.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/theme/cccevents/templates/news.html b/theme/cccevents/templates/news.html
new file mode 100644
index 0000000..999333a
--- /dev/null
+++ b/theme/cccevents/templates/news.html
@@ -0,0 +1,40 @@
1{% extends "base.html" %}
2
3{% block title %}{{ SITENAME }} - {{ page.title }}{%endblock%}
4
5{% block translation %}
6{% import 'translations.html' as translations with context %}
7{{ translations.translations_for(page) }}
8{% endblock %}
9
10{% block content_title %}
11 <h1 class="entry-title">{{ page.title }}</h1>
12{% endblock %}
13
14{% block content %}
15{% if articles %}
16 {% for article in dates %}
17 <article class="hentry">
18 <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
19
20 <div class="entry-content">
21 {{ article.summary }}
22 <a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
23 </div><!-- /.entry-content -->
24 </article>
25 {% endfor %}
26{% else %}
27<section id="content" class="body">
28 <header>
29 <h1>Pages</h1>
30 </header>
31 <div>
32 <ul>
33 {% for page in PAGES %}
34 <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
35 {% endfor %}
36 </ul>
37 </div><!-- /.entry-content -->
38</section>
39{% endif %}
40{% endblock %}