diff options
author | Hans-Peter Oeri <hp@oeri.ch> | 2018-10-25 13:27:51 +0200 |
---|---|---|
committer | Hans-Peter Oeri <hp@oeri.ch> | 2018-10-25 13:27:51 +0200 |
commit | c8cfe63aac73a92ae02354a5306ca5480808daff (patch) | |
tree | 7bf3bcf334051dbf2f8d96981b8d199470064eac /theme/cccevents/templates/article.html | |
parent | 17a536b7ffba296f1fc71337ce8aa2910f5ed3fc (diff) |
re-do site in schiedsstelle layout
Diffstat (limited to 'theme/cccevents/templates/article.html')
-rw-r--r-- | theme/cccevents/templates/article.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/theme/cccevents/templates/article.html b/theme/cccevents/templates/article.html new file mode 100644 index 0000000..581f960 --- /dev/null +++ b/theme/cccevents/templates/article.html | |||
@@ -0,0 +1,40 @@ | |||
1 | {% extends "base.html" %} | ||
2 | {% block head %} | ||
3 | {{ super() }} | ||
4 | {% for keyword in article.keywords %} | ||
5 | <meta name="keywords" contents="{{ keyword }}" /> | ||
6 | {% endfor %} | ||
7 | {% for description in article.description %} | ||
8 | <meta name="description" contents="{{ description }}" /> | ||
9 | {% endfor %} | ||
10 | {% for tag in article.tags %} | ||
11 | <meta name="tags" contents="{{ tag }}" /> | ||
12 | {% endfor %} | ||
13 | {% endblock %} | ||
14 | {% block translation %} | ||
15 | {% import 'translations.html' as translations with context %} | ||
16 | {{ translations.translations_for(article) }} | ||
17 | {% endblock %} | ||
18 | |||
19 | {% block content_title %} | ||
20 | <h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1> | ||
21 | {% endblock %} | ||
22 | |||
23 | {% block content %} | ||
24 | |||
25 | {% if category == "pressreview" %} | ||
26 | <dl> | ||
27 | <dt>Publiziert von:</dt> | ||
28 | <dd>{{ article.publisher }}</dd> | ||
29 | <dt>Publiziert am:</dt> | ||
30 | <dd>{{ article.date.strftime('%-d. %B %Y') }}</dd> | ||
31 | <dt>URL:</dt> | ||
32 | <dd>{{ article.ext_url|urlize(128, true) }}</dd> | ||
33 | </dl> | ||
34 | {% else %} | ||
35 | {{ article.content }} | ||
36 | {% endif %} | ||
37 | |||
38 | <hr /> | ||
39 | <div class="shariff" data-title="{{ SITENAME }} - {{ article.title }}" data-url="{{ SITEURL }}/{{ article.url }}" data-theme="grey"></div> | ||
40 | {% endblock %} | ||