matched structure of links between pages

This commit is contained in:
eclipse 2025-02-10 14:54:41 +01:00
parent 099bb2214c
commit 1c9b760d38
3 changed files with 12 additions and 11 deletions

View File

@ -34,11 +34,11 @@ RELATIVE_URLS = True
DISPLAY_PAGES_ON_MENU = DISPLAY_CATEGORIES_ON_MENU = False DISPLAY_PAGES_ON_MENU = DISPLAY_CATEGORIES_ON_MENU = False
MENUITEMS = ( MENUITEMS = (
("Werke", "/werke/"), ("Werke", "werke/"),
("Neues", "/neues/"), ("Neues", "neues/"),
("Termine", "/termine/"), ("Termine", "termine/"),
("Autor", "/autor/"), ("Autor", "autor/"),
("Kontakt", "/kontakt/") ("Kontakt", "kontakt/")
) )
IGNORE_FILES = ['**/.*'] IGNORE_FILES = ['**/.*']
@ -83,3 +83,4 @@ JINJA_ENVIRONMENT = { "extensions": ["jinja2.ext.debug"] }
############################################################################### ###############################################################################
STYLESHEET_FILES = ("pico.amber.css", "custom.css") STYLESHEET_FILES = ("pico.amber.css", "custom.css")
DEFAULT_METADESC = "Tobias Radloff ist preisgekrönter Schriftsteller von Romanen, Kurzgeschichten und Lyrik auf deutsch und englisch. Zu seinen Genres gehören Fantasy, SF, Krimi, Kinder-/Jugendbuch und mehr. Er organisiert und moderiert die regelmäßigen Lesereihen 'Potsdams andere Welten' und 'Babelsberger Lesesalon'."

View File

@ -6,12 +6,12 @@
{% for article in articles if article[page.card_selector_key] == selector_value %} {% for article in articles if article[page.card_selector_key] == selector_value %}
<article class="card"> <article class="card">
<header class="article-header"> <header class="article-header">
<h3><a href="/{{ article.save_as }}" title="{{ article.title }}">{{ article.title }}</a></h3> <h3><a href="{{ SITEURL }}/{{ article.save_as }}" title="{{ article.title }}">{{ article.title }}</a></h3>
</header> </header>
<div class="article-body"> <div class="article-body">
{% if article.titelbild %} {% if article.titelbild %}
<a href="/{{ article.save_as }}" title="{{ article.title }}"><img alt='Titelbild zu "{{ article.title }}"' <a href="{{ SITEURL }}/{{ article.save_as }}" title="{{ article.title }}"><img
src="{{ article.titelbild }}" /></a> alt='Titelbild zu "{{ article.title }}"' src="{{ SITEURL }}/{{ article.titelbild }}" /></a>
{% endif %} {% endif %}
{% if article.summary %} {% if article.summary %}

View File

@ -8,13 +8,13 @@
</label> </label>
<ul id="main-menu-items" role="list"> <ul id="main-menu-items" role="list">
{% for title, link in MENUITEMS %} {% for title, link in MENUITEMS %}
{% if output_file[-10:] == "index.html" and "/" + output_file[:-10] == link %} {# 10 characters is the length of {% if output_file[-10:] == "index.html" and output_file[:-10] == link %} {# 10 characters is the length of
"index.html" #} "index.html" #}
<li aria-current="page" role="listitem"> <li aria-current="page" role="listitem">
{% else %} {% else %}
<li role="listitem"> <li role="listitem">
{% endif %} {% endif %}
<a href="{{ link }}">{{ title }}</a> <a href="{{ SITEURL }}/{{ link }}">{{ title }}</a>
</li> </li>
{% endfor %} {% endfor %}
<li role="listitem"> <li role="listitem">