diff options
author | Hans-Peter Oeri <hp@oeri.ch> | 2018-10-27 08:43:47 +0000 |
---|---|---|
committer | Hans-Peter Oeri <hp@oeri.ch> | 2018-10-27 08:43:47 +0000 |
commit | cc1cc2647c681e5275dedbe79af272e0450d7f64 (patch) | |
tree | 3f5071d9f25b89b311e09a20b22b9c5a7b225d27 /theme/cccevents/templates/article.html | |
parent | 17a536b7ffba296f1fc71337ce8aa2910f5ed3fc (diff) | |
parent | 928baa83e47a11d765493af38307d247148b0a2e (diff) |
Merge branch 'master' into 'master'
re-do in layout
See merge request cccschiedsstelle/help.ccc.de!1
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 %} | ||