removed new macro b/c I found the setting that does the same
This commit is contained in:
parent
4ac79a72e9
commit
48a5a970fc
@ -11,19 +11,19 @@ TIMEZONE = 'Europe/Berlin'
|
||||
DEFAULT_LANG = 'de'
|
||||
#DEFAULT_DATE_FORMAT = '%d.%m.%Y' (doesn't seem to work)
|
||||
|
||||
THEME = "theme/"
|
||||
FORMATTED_FIELDS = ['summary', 'klappentext']
|
||||
|
||||
###############################################################################
|
||||
# URL & Path Settings #
|
||||
###############################################################################
|
||||
|
||||
THEME = "theme/"
|
||||
PATH = "content"
|
||||
ARTICLE_PATHS = ["posts"]
|
||||
PAGE_PATHS = ["pages"]
|
||||
STATIC_PATHS = ["images", "favicon", "php"]
|
||||
#STATIC_EXCLUDES = ["unoptimized-images"]
|
||||
|
||||
DIRECT_TEMPLATES = ['index', 'tags']
|
||||
DIRECT_TEMPLATES = []
|
||||
IGNORE_FILES = ['**/.*', '__pycache__', 'favicon-from-svg.sh', '*.metadata']
|
||||
|
||||
EXTRA_PATH_METADATA = {
|
||||
@ -41,9 +41,17 @@ EXTRA_PATH_METADATA = {
|
||||
|
||||
PAGE_URL = '{slug}/'
|
||||
PAGE_SAVE_AS = '{slug}/index.html'
|
||||
|
||||
ARTICLE_SAVE_AS = '{category}/{slug}.html'
|
||||
ARTICLE_LANG_SAVE_AS = '{category}/{slug}.html'
|
||||
|
||||
AUTHOR_SAVE_AS = ''
|
||||
AUTHORS_SAVE_AS = ''
|
||||
|
||||
CATEGORY_SAVE_AS = ''
|
||||
CATEGORIES_SAVE_AS = ''
|
||||
|
||||
PAGINATED_TEMPLATES = {}
|
||||
|
||||
DEFAULT_DATE = "fs"
|
||||
|
||||
@ -95,19 +103,6 @@ TRANSLATION_FEED_ATOM = None
|
||||
AUTHOR_FEED_ATOM = None
|
||||
AUTHOR_FEED_RSS = None
|
||||
|
||||
# Blogroll
|
||||
LINKS = (
|
||||
("Pelican", "https://getpelican.com/"),
|
||||
("Python.org", "https://www.python.org/"),
|
||||
("Jinja2", "https://palletsprojects.com/p/jinja/"),
|
||||
("You can modify those links in your config file", "#"),
|
||||
)
|
||||
|
||||
# Social widget
|
||||
SOCIAL = (
|
||||
("You can add links in your config file", "#"),
|
||||
("Another social link", "#"),
|
||||
)
|
||||
|
||||
|
||||
###############################################################################
|
||||
|
||||
@ -18,9 +18,8 @@
|
||||
<div class="body-column-text">
|
||||
{% if article.content | length is not eq(0) %}{{ article.content | safe }}{% endif %}
|
||||
{% if article.klappentext %}
|
||||
{% from 'includes/macros.html' import kt %}
|
||||
<h2>Klappentext</h2>
|
||||
<blockquote>{{ kt(article.klappentext) }}</blockquote>
|
||||
<blockquote>{{ article.klappentext }}</blockquote>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="body-column-img">
|
||||
|
||||
@ -17,8 +17,3 @@
|
||||
</figure>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{# split long string (e.g. Klappentext) into paragraphs and output them as <p> elements #}
|
||||
{% macro kt(text) %}
|
||||
{% for k in text.strip().split("\n\n") | list %}<p>{{ k }}</p>{% endfor %}
|
||||
{% endmacro %}
|
||||
Loading…
Reference in New Issue
Block a user