added template tag.html
This commit is contained in:
parent
7033b7c7a1
commit
6ad6a6d47c
@ -5,12 +5,12 @@ category: Romane
|
||||
author: Paul Jansen
|
||||
stats:
|
||||
reihe: Krimis for Kids
|
||||
verlag: Langenscheidt
|
||||
tags:
|
||||
- Kinder- und Jugendbuch
|
||||
- Krimi
|
||||
- zweisprachig
|
||||
- English
|
||||
verlag: Langenscheidt
|
||||
summary: zweisprachiger Kinderkrimi
|
||||
lang: de
|
||||
featured_image:
|
||||
|
||||
@ -4,13 +4,13 @@ date: 2012
|
||||
category: Romane
|
||||
author: Paul Jansen
|
||||
stats:
|
||||
reihe: World of Fantasy
|
||||
verlag: Langenscheidt
|
||||
tags:
|
||||
- Kinder- und Jugendbuch
|
||||
- Fantasy
|
||||
- zweisprachig
|
||||
- English
|
||||
reihe: World of Fantasy
|
||||
verlag: Langenscheidt
|
||||
summary: zweisprachige Fantasy
|
||||
lang: de
|
||||
featured_image:
|
||||
|
||||
@ -4,13 +4,13 @@ date: 2008
|
||||
category: Romane
|
||||
author: Paul Jansen
|
||||
stats:
|
||||
reihe: Krimis for Kids
|
||||
verlag: Langenscheidt
|
||||
tags:
|
||||
- Kinder- und Jugendbuch
|
||||
- Krimi
|
||||
- zweisprachig
|
||||
- English
|
||||
reihe: Krimis for Kids
|
||||
verlag: Langenscheidt
|
||||
summary: zweisprachiger Kinderkrimi
|
||||
lang: de
|
||||
featured_image:
|
||||
|
||||
@ -4,12 +4,12 @@ date: 2007
|
||||
category: Romane
|
||||
author: Tobias Radloff
|
||||
stats:
|
||||
reihe: Lernschmöker
|
||||
verlag: Langenscheidt
|
||||
tags:
|
||||
- Historischer Roman
|
||||
- English
|
||||
- Zweisprachig
|
||||
reihe: Lernschmöker
|
||||
verlag: Langenscheidt
|
||||
summary: zweisprachiger historischer Roman
|
||||
lang: de
|
||||
featured_image:
|
||||
|
||||
@ -3,12 +3,12 @@ title: Satinavs Auge
|
||||
date: 2007
|
||||
category: Romane
|
||||
stats:
|
||||
tags:
|
||||
- Fantasy
|
||||
- Das Schwarze Auge
|
||||
reihe: Das Schwarze Auge
|
||||
verlag: Fantasy Productions
|
||||
isbn: 978-3-89064-495-0
|
||||
tags:
|
||||
- Fantasy
|
||||
- Das Schwarze Auge
|
||||
author: Tobias Radloff
|
||||
summary: Ein spannender Mantel-und-Degen-Roman aus der Welt des Schwarzen Auges
|
||||
lang: de
|
||||
|
||||
@ -38,30 +38,30 @@ EXTRA_PATH_METADATA = {
|
||||
'php/SMTP.php': {'path': 'SMTP.php'},
|
||||
}
|
||||
|
||||
|
||||
PAGE_URL = '{slug}/'
|
||||
PAGE_SAVE_AS = '{slug}/index.html'
|
||||
|
||||
ARTICLE_SAVE_AS = '{category}/{slug}.html'
|
||||
ARTICLE_LANG_SAVE_AS = '{category}/{slug}.html'
|
||||
|
||||
TAG_URL = 'tag/{slug}/'
|
||||
TAG_SAVE_AS = 'tag/{slug}/index.html'
|
||||
|
||||
AUTHOR_SAVE_AS = ''
|
||||
AUTHORS_SAVE_AS = ''
|
||||
|
||||
CATEGORY_SAVE_AS = ''
|
||||
CATEGORIES_SAVE_AS = ''
|
||||
|
||||
DEFAULT_PAGINATION = 5
|
||||
PAGINATED_TEMPLATES = {}
|
||||
|
||||
DEFAULT_DATE = "fs"
|
||||
|
||||
DEFAULT_PAGINATION = 5
|
||||
|
||||
# Uncomment following line if you want document-relative URLs when developing
|
||||
RELATIVE_URLS = True
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Main Menu Settings #
|
||||
###############################################################################
|
||||
|
||||
@ -17,25 +17,27 @@
|
||||
<article id="article-body">
|
||||
<div class="body-column-text">
|
||||
{% if article.content | length is not eq(0) %}{{ article.content }}{% endif %}
|
||||
{% if article.stats %}
|
||||
{% if article.stats or article.tags %}
|
||||
<div>
|
||||
<h2>Details</h2>
|
||||
<ul class="article-stats">
|
||||
{% if article.stats %}
|
||||
{% set stats = article.stats %}
|
||||
{% if stats.reihe is defined %}
|
||||
<li>aus der Reihe "{{ stats.reihe }}"</li>
|
||||
{% endif %}
|
||||
{% if stats.tags is defined %}
|
||||
<li>Schlagworte: <ul class="article-tags">
|
||||
{% for tag in stats.tags %}<li><a href="/tag/{{ tag }}">{{ tag }}</a></li>{% endfor %}
|
||||
</ul></li>
|
||||
{% endif %}
|
||||
{% if stats.isbn is defined %}
|
||||
<li>ISBN: {{ stats.isbn }}</li>
|
||||
{% endif %}
|
||||
{% if stats.verlag is defined %}
|
||||
<li>erschienen bei: {{ stats.verlag }}</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if article.tags is defined %}
|
||||
<li>Schlagworte: <ul class="article-tags">
|
||||
{% for t in article.tags %}<li><a href="/tag/{{ t | lower }}/">{{ t }}</a></li>{% endfor %}
|
||||
</ul></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
28
theme/templates/tag.html
Normal file
28
theme/templates/tag.html
Normal file
@ -0,0 +1,28 @@
|
||||
{% extends "index.html" %}
|
||||
|
||||
{% block content_header %}
|
||||
<header id="main-header">
|
||||
<h1>{{ tag }} (Schlagwort)</h1>
|
||||
</header>
|
||||
{% endblock content_header %}
|
||||
|
||||
{% block content_body %}
|
||||
{% from 'includes/macros.html' import ci %}
|
||||
{% for article in articles %}
|
||||
<article class="wcard" style="flex-direction: {{ loop.cycle('row', 'row-reverse') }};">
|
||||
<div class="tag-content">
|
||||
<h2>{{ article.title }}</h2>
|
||||
{{ article.summary }}
|
||||
</div>
|
||||
<div class="tag-image">
|
||||
{% if article.featured_image %}
|
||||
{% set i = article.featured_image[0] %}
|
||||
{{ ci('../' + i.pic, i.link | default("/" + article.save_as), i.alt | default("Titelbild von " + article.title), i.title | default(article.title), i.credit, i.credit_link) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% endblock content_body %}
|
||||
|
||||
{% block content_footer %}
|
||||
{% endblock content_footer %}
|
||||
Loading…
Reference in New Issue
Block a user