added template tag.html
This commit is contained in:
parent
7033b7c7a1
commit
6ad6a6d47c
@ -5,12 +5,12 @@ category: Romane
|
|||||||
author: Paul Jansen
|
author: Paul Jansen
|
||||||
stats:
|
stats:
|
||||||
reihe: Krimis for Kids
|
reihe: Krimis for Kids
|
||||||
|
verlag: Langenscheidt
|
||||||
tags:
|
tags:
|
||||||
- Kinder- und Jugendbuch
|
- Kinder- und Jugendbuch
|
||||||
- Krimi
|
- Krimi
|
||||||
- zweisprachig
|
- zweisprachig
|
||||||
- English
|
- English
|
||||||
verlag: Langenscheidt
|
|
||||||
summary: zweisprachiger Kinderkrimi
|
summary: zweisprachiger Kinderkrimi
|
||||||
lang: de
|
lang: de
|
||||||
featured_image:
|
featured_image:
|
||||||
|
|||||||
@ -4,13 +4,13 @@ date: 2012
|
|||||||
category: Romane
|
category: Romane
|
||||||
author: Paul Jansen
|
author: Paul Jansen
|
||||||
stats:
|
stats:
|
||||||
|
reihe: World of Fantasy
|
||||||
|
verlag: Langenscheidt
|
||||||
tags:
|
tags:
|
||||||
- Kinder- und Jugendbuch
|
- Kinder- und Jugendbuch
|
||||||
- Fantasy
|
- Fantasy
|
||||||
- zweisprachig
|
- zweisprachig
|
||||||
- English
|
- English
|
||||||
reihe: World of Fantasy
|
|
||||||
verlag: Langenscheidt
|
|
||||||
summary: zweisprachige Fantasy
|
summary: zweisprachige Fantasy
|
||||||
lang: de
|
lang: de
|
||||||
featured_image:
|
featured_image:
|
||||||
|
|||||||
@ -4,13 +4,13 @@ date: 2008
|
|||||||
category: Romane
|
category: Romane
|
||||||
author: Paul Jansen
|
author: Paul Jansen
|
||||||
stats:
|
stats:
|
||||||
|
reihe: Krimis for Kids
|
||||||
|
verlag: Langenscheidt
|
||||||
tags:
|
tags:
|
||||||
- Kinder- und Jugendbuch
|
- Kinder- und Jugendbuch
|
||||||
- Krimi
|
- Krimi
|
||||||
- zweisprachig
|
- zweisprachig
|
||||||
- English
|
- English
|
||||||
reihe: Krimis for Kids
|
|
||||||
verlag: Langenscheidt
|
|
||||||
summary: zweisprachiger Kinderkrimi
|
summary: zweisprachiger Kinderkrimi
|
||||||
lang: de
|
lang: de
|
||||||
featured_image:
|
featured_image:
|
||||||
|
|||||||
@ -4,12 +4,12 @@ date: 2007
|
|||||||
category: Romane
|
category: Romane
|
||||||
author: Tobias Radloff
|
author: Tobias Radloff
|
||||||
stats:
|
stats:
|
||||||
|
reihe: Lernschmöker
|
||||||
|
verlag: Langenscheidt
|
||||||
tags:
|
tags:
|
||||||
- Historischer Roman
|
- Historischer Roman
|
||||||
- English
|
- English
|
||||||
- Zweisprachig
|
- Zweisprachig
|
||||||
reihe: Lernschmöker
|
|
||||||
verlag: Langenscheidt
|
|
||||||
summary: zweisprachiger historischer Roman
|
summary: zweisprachiger historischer Roman
|
||||||
lang: de
|
lang: de
|
||||||
featured_image:
|
featured_image:
|
||||||
|
|||||||
@ -3,12 +3,12 @@ title: Satinavs Auge
|
|||||||
date: 2007
|
date: 2007
|
||||||
category: Romane
|
category: Romane
|
||||||
stats:
|
stats:
|
||||||
tags:
|
|
||||||
- Fantasy
|
|
||||||
- Das Schwarze Auge
|
|
||||||
reihe: Das Schwarze Auge
|
reihe: Das Schwarze Auge
|
||||||
verlag: Fantasy Productions
|
verlag: Fantasy Productions
|
||||||
isbn: 978-3-89064-495-0
|
isbn: 978-3-89064-495-0
|
||||||
|
tags:
|
||||||
|
- Fantasy
|
||||||
|
- Das Schwarze Auge
|
||||||
author: Tobias Radloff
|
author: Tobias Radloff
|
||||||
summary: Ein spannender Mantel-und-Degen-Roman aus der Welt des Schwarzen Auges
|
summary: Ein spannender Mantel-und-Degen-Roman aus der Welt des Schwarzen Auges
|
||||||
lang: de
|
lang: de
|
||||||
|
|||||||
@ -38,30 +38,30 @@ EXTRA_PATH_METADATA = {
|
|||||||
'php/SMTP.php': {'path': 'SMTP.php'},
|
'php/SMTP.php': {'path': 'SMTP.php'},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PAGE_URL = '{slug}/'
|
PAGE_URL = '{slug}/'
|
||||||
PAGE_SAVE_AS = '{slug}/index.html'
|
PAGE_SAVE_AS = '{slug}/index.html'
|
||||||
|
|
||||||
ARTICLE_SAVE_AS = '{category}/{slug}.html'
|
ARTICLE_SAVE_AS = '{category}/{slug}.html'
|
||||||
ARTICLE_LANG_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 = ''
|
AUTHOR_SAVE_AS = ''
|
||||||
AUTHORS_SAVE_AS = ''
|
AUTHORS_SAVE_AS = ''
|
||||||
|
|
||||||
CATEGORY_SAVE_AS = ''
|
CATEGORY_SAVE_AS = ''
|
||||||
CATEGORIES_SAVE_AS = ''
|
CATEGORIES_SAVE_AS = ''
|
||||||
|
|
||||||
|
DEFAULT_PAGINATION = 5
|
||||||
PAGINATED_TEMPLATES = {}
|
PAGINATED_TEMPLATES = {}
|
||||||
|
|
||||||
DEFAULT_DATE = "fs"
|
DEFAULT_DATE = "fs"
|
||||||
|
|
||||||
DEFAULT_PAGINATION = 5
|
|
||||||
|
|
||||||
# Uncomment following line if you want document-relative URLs when developing
|
# Uncomment following line if you want document-relative URLs when developing
|
||||||
RELATIVE_URLS = True
|
RELATIVE_URLS = True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Main Menu Settings #
|
# Main Menu Settings #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
@ -17,25 +17,27 @@
|
|||||||
<article id="article-body">
|
<article id="article-body">
|
||||||
<div class="body-column-text">
|
<div class="body-column-text">
|
||||||
{% if article.content | length is not eq(0) %}{{ article.content }}{% endif %}
|
{% if article.content | length is not eq(0) %}{{ article.content }}{% endif %}
|
||||||
{% if article.stats %}
|
{% if article.stats or article.tags %}
|
||||||
<div>
|
<div>
|
||||||
<h2>Details</h2>
|
<h2>Details</h2>
|
||||||
<ul class="article-stats">
|
<ul class="article-stats">
|
||||||
|
{% if article.stats %}
|
||||||
{% set stats = article.stats %}
|
{% set stats = article.stats %}
|
||||||
{% if stats.reihe is defined %}
|
{% if stats.reihe is defined %}
|
||||||
<li>aus der Reihe "{{ stats.reihe }}"</li>
|
<li>aus der Reihe "{{ stats.reihe }}"</li>
|
||||||
{% endif %}
|
{% 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 %}
|
{% if stats.isbn is defined %}
|
||||||
<li>ISBN: {{ stats.isbn }}</li>
|
<li>ISBN: {{ stats.isbn }}</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if stats.verlag is defined %}
|
{% if stats.verlag is defined %}
|
||||||
<li>erschienen bei: {{ stats.verlag }}</li>
|
<li>erschienen bei: {{ stats.verlag }}</li>
|
||||||
{% endif %}
|
{% 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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% 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