Compare commits

...

11 Commits

28 changed files with 66 additions and 45 deletions

View File

@ -25,7 +25,7 @@ require($webroot . '/functions.php');
$successURL = '/success.html';
$errorURL = '/error.html';
$err = 'Nachrichtversand fehlgeschlagen';
$err = 'Nachrichtenversand fehlgeschlagen';
$body = [
'Diese Nachricht wurde soeben durch das Kontaktformular auf t-r.de übermittelt:',

2
content/misc/robots.txt Normal file
View File

@ -0,0 +1,2 @@
user-agent: *
disallow: /newsletter/danke.html

View File

@ -2,9 +2,12 @@
title: Du bist Abonnent!
date: 2025-02-04 10:20
author: Tobias Radloff
summary: Danke für deine Nachricht.
summary: Dieses Gedicht ist mein Dank dafür, dass du dich für meinen Newsletter angemeldet hast.
lang: de
slug: danke
html_metadata:
- name: robots
content: noindex
save_as: newsletter/danke.html
footer_line: "[← zur Startseite](/)"
featured_image:
@ -14,7 +17,7 @@ featured_image:
credit_link: https://unsplash.com/@rayhennessy
---
Klasse, dass du dich für meinen Newsletter angemeldet hast. Als kleines Dankeschön und um die Wartezeit auf die nächste Ausgabe zu verkürzen, ist hier ein bislang unveröffentlichtes Gedicht von mir. Viel Spaß :-)
Klasse, dass du dich für meinen Newsletter angemeldet hast! Als kleines Dankeschön und um die Wartezeit auf die nächste Ausgabe zu verkürzen, ist hier ein bislang unveröffentlichtes Gedicht von mir. Viel Spaß :-)
> ## Handwerk
>

View File

@ -4,6 +4,7 @@ slug: datenschutz
save_as: datenschutz/index.html
url: datenschutz/
footer_line: "[← zur Startseite](/)"
summary: DSGVO-konforme Datenschutzerklärung für die Webseite tobias-radloff.de
featured_image:
- pic: ../images/tr/motif-datenschutz.png
alt: die Abkürzung "DSGVO" vor einem blauem, einem Computerchip nachempfundenen Hintergrund

View File

@ -2,7 +2,7 @@
title: "Das hat nicht geklappt :-("
date: 2025-03-03 17:19
author: Tobias Radloff
summary: Ein Fehler ist aufgetreten
summary: Bei der Bearbeitung eines Webseitenformulars ist ein Fehler aufgetreten. Super ärgerlich!
lang: de
slug: error
url: /error.html
@ -10,12 +10,12 @@ save_as: error.html
footer_line: "[← zur Startseite](/)"
featured_image:
- pic: ../images/motif-error.jpg
alt: eine Frau vor einem Laptop stützt geknickt den Kopf in die Hände
alt: eine Frau vor einem Laptop stützt traurig den Kopf in die Hände
credit: Elisa Ventur | unsplash.com
credit_link: https://unsplash.com/@elisa_ventur
---
Verflixt, es ist ein Fehler bei der Newsletter-Verwaltung aufgetreten. Vielleicht hilft dir die Statusmeldung weiter?
Verflixt, bei der Bearbeitung deiner Formulareingaben ist ein Fehler aufgetreten. Vielleicht hilft dir die Statusmeldung weiter?
`suche Statusmeldung`{: #msg}

View File

@ -2,6 +2,7 @@
title: Impressum
date: 2025-02-20
footer_include: includes/timestamp.html
summary: Rechtskonformes Impressum für die Webseite tobias-radloff.de.
featured_image:
- pic: ../images/tr/motif-paragraph-symbol.png
alt: ein goldenes Paragraphenzeichen

View File

@ -1,5 +1,5 @@
---
title: Index
title: Startseite
date: 2025-02-25
template: index
save_as: index.html
@ -18,7 +18,6 @@ index_cards:
alt: Lesungen und Lesereihen
- pic: images/tr/motif-newsletter.png
link: neues/
# link: neues/meine-neue-webseite-ist-live.html
alt: Aktuelles und Neuigkeiten
credit: Markus Winkler | unsplash.com
credit_link: https://unsplash.com/@markuswinkler

View File

@ -2,7 +2,7 @@
title: Kontaktformular
date: 2025-02-04 10:20
author: Tobias Radloff
summary: Schreib mir eine Nachricht.
summary: Kontaktformular für die Website tobias-radloff.de. Schreib mir eine Nachricht und lass mich wissen, was dich bewegt.
lang: de
template: page
slug: kontakt

View File

@ -1,7 +1,7 @@
---
title: Kurzprosa
author: Tobias Radloff
summary: Kurzgeschichten, Wettbewerbsbeiträge und Anthologien
summary: Erfahre alles über meine Kurzgeschichten, Wettbewerbsbeiträge und Anthologien aus den Genres Fantasy, SF, Horror, Belletristik, Krimi und Satire.
lang: de
category: Kurzprosa
template: cards

View File

@ -1,6 +1,6 @@
---
title: Lyrik & Slam Poetry
summary: Gedichte, Reime, Poesie
summary: Erfahre alles über meine veröffentliche Lyrik und Slam Poetry, von denen mehrere Texte frei im Netz verfügbar sind.
category: Lyrik
author: Tobias Radloff
lang: de

View File

@ -1,5 +1,6 @@
---
title: Neuigkeiten
template: news
summary: "Hier findest du alles, was es bei mir zu vermelden gibt: Neuerscheinungen, aktuelle Veranstaltungen und Termine, Presseberichte, geplante Projekte und mehr."
slug: neues
---

View File

@ -2,7 +2,7 @@
title: Newsletter
date: 2025-03-10 22:13
author: Tobias Radloff
summary: Abonniere meinen Newsletter und bleib auf dem Laufenden, was meine Bücher angeht.
summary: Abonniere meinen Newsletter und bleibe stets auf dem Laufenden, was meine Bücher, Lesungen und sonstigen Projekte angeht.
lang: de
template: page
featured_image:

View File

@ -1,6 +1,6 @@
---
title: Romane
summary: Fantasy, SF, Krimi, Kinder- und Jugendbuch, …
summary: Erfahre alles über meine Romane, darunter der Noir-Krimi "Amoralisch", der dystopische SF-Thriller "Schwarzspeicher" und meine zweisprachigen (d/e) Kinder- und Jugendbücher.
author: Tobias Radloff
lang: de
category: Romane

View File

@ -2,7 +2,7 @@
title: "Das hat geklappt :-)"
date: 2025-03-04 23:19
author: Tobias Radloff
summary: Ein Arbeitsschritt wurde erfolgreich bewältigt.
summary: Ein Arbeitsschritt bei der Formularbearbeitung wurde erfolgreich bewältigt.
lang: de
slug: success
url: /success.html

View File

@ -1,6 +1,6 @@
title: Termine
author: Tobias Radloff
summary: Lesungen und Veranstaltungen
summary: Diese Liste enthält die Termine all meiner kommenden Lesungen und Veranstaltungen, darunter auch meine Lesereihen 'Potsdams Andere Welten' und 'Babelsberger Lesesalon'.
template: termine
lang: de
category: Termine

View File

@ -3,7 +3,7 @@ title: Über mich
author: Tobias Radloff
category: Über mich
lang: de
summary: Vita und Wissenswertes über mich
summary: Vita und Werdegang des Schriftstellers Tobias Radloff.
slug: ueber-mich
footer_line: "[← zur Startseite](/)"
template: page

View File

@ -1,6 +1,6 @@
---
title: Weitere Texte
summary: Rollenspielpublikationen & Zeitschriftenartikel
summary: Erfahre alles über meine weiteren Texte, darunter Rollenspielpublikationen (u.a. Das Schwarze Auge, Call of Cthulhu) und Zeitschriftenartikel (teilweise frei im Netz verfügbar).
author: Tobias Radloff
lang: de
slug: weitere

View File

@ -2,7 +2,7 @@
title: Werke
date: 2025-02-04 10:20
author: Tobias Radloff
summary: Ich schreibe …
summary: Erfahre mehr über meine Romane, Kurzgeschichten, Lyrik, Slam Poetry und weiteren Texte.
template: wide-cards
wide_cards:
- romane

View File

@ -20,7 +20,7 @@ tags:
- Science-Fiction
- Andere Welten
author: Tobias Radloff
summary:
summary: Warum wir uns in der Zukunft über Kundendiensthotlines noch mehr ärgern werden, erfährst du in dieser SF-Kurzgeschichte.
lang: de
order: 45
featured_image:

View File

@ -20,9 +20,4 @@ Trotzdem verzichte ich absichtlich darauf, mir soziale Medien zunutze zu machen.
## Ich mag meine Privatsphäre
Es ist mir wichtig, Privates und Öffentliches nicht zu vermischen. Doch die sozialen Medien sind darauf ausgerichtet, beides zu vermischen.

View File

@ -7,6 +7,8 @@ SITENAME = 'Tobias Radloff'
SITESUBTITLE = 'Schriftsteller'
SITEURL = ''
DEFAULT_METADESC = "Der preisgekrönte Schriftsteller Tobias Radloff schreibt Romane, Kurzgeschichten und Lyrik und ist Mitgründer der Lesereihe \"Potsdams Andere Welten\"."
TIMEZONE = 'Europe/Berlin'
DEFAULT_LANG = 'de'
#DEFAULT_DATE_FORMAT = '%d.%m.%Y' (doesn't seem to work)
@ -18,7 +20,10 @@ PATH = 'content'
# Content Settings #
###############################################################################
STYLESHEET_FILES = ("pico.slate.css", "font.local.css", "custom.css")
PICO_COLOR = 'slate'
FONT_SOURCE = "local"
CUSTOM_CSS = "custom.css"
STYLESHEET_FILES = ("pico." + PICO_COLOR + ".css", "font." + FONT_SOURCE + ".css", CUSTOM_CSS)
DIRECT_TEMPLATES = []
@ -39,6 +44,7 @@ EXTRA_PATH_METADATA = {
'misc/PHPMailer.php': {'path': 'PHPMailer.php'},
'misc/SMTP.php': {'path': 'SMTP.php'},
'misc/.htaccess': {'path': '.htaccess'},
'misc/robots.txt': {'path': 'robots.txt'},
}
PAGE_URL = '{slug}/'
@ -64,7 +70,7 @@ DEFAULT_DATE = "fs"
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
SUMMARY_MAX_LENGTH = 50
SUMMARY_MAX_LENGTH = 25
FORMATTED_FIELDS = ['summary', 'klappentext', 'footer_line']
@ -147,7 +153,5 @@ MARKDOWN = {
# Self-defined Settings #
###############################################################################
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'."
import datetime
DATETIME_NOW = datetime.datetime.now().astimezone()

View File

@ -7,7 +7,8 @@ import sys
sys.path.append(os.curdir)
from pelicanconf import *
STYLESHEET_FILES = ("pico.zinc.min.css", "font.cdn.css", "custom.css")
FONT_SOURCE = "cdn"
STYLESHEET_FILES = ("pico." + PICO_COLOR + ".min.css", "font." + FONT_SOURCE + ".css", CUSTOM_CSS)
# If your site is available via HTTPS, make sure SITEURL begins with https://

View File

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block title %}{{ article.title }} {{ SITENAME }}{% endblock %}
{% block metadesc %}{% if article.summary %}{{ article.summary | e }}{% else %}An Article in {{ SITETAG }}: {{ article.title }}{% endif %}{% endblock %}
{% block metadesc %}{% if article.summary %}{{ article.summary | striptags | e }}{% else %}{{ article.title }}{% endif %}{% endblock %}
{% block content_all %}
<article>

View File

@ -5,15 +5,18 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% include "includes/favicon.html" %}
<meta name="description" content="{% block metadesc %}{{ DEFAULT_METADESC|e }}{% endblock %}" />
<meta name="description" property="og:description" content="{% block metadesc %}{{ DEFAULT_METADESC | e }}{% endblock %}" />
<meta name="author" content="{{ AUTHOR }}" />
<meta name="generator" content="Pelican" />
<meta name="color-scheme" content="light dark" />
{% for css in STYLESHEET_FILES %}
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ css }}" />
{% endfor %}
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
<title>{% block title %}{{ SITENAME | e }}{% endblock %}</title>
{% block html_metadata %}{% endblock html_metadata %}
</head>
<body>

View File

@ -1,10 +1,12 @@
{% extends "page.html" %}
{% block title %}{{ SITENAME }}, {{ SITESUBTITLE }}{% endblock %}
{% block content_header %}
{% endblock content_header %}
{% block content_all %}
{% for p in pages if p.title == "Index" %}
{% for p in pages if p.title == "Startseite" %}
{% if p.featured_news %}
{% set fn = p.featured_news %}

View File

@ -1,8 +1,17 @@
{% extends "base.html" %}
{% block title %}{{ page.title }} {{ SITENAME }}{% endblock %}
{% block html_metadata %}
{% if page.html_metadata %}
{% for meta in page.html_metadata %}
<meta name="{{ meta.name }}" content="{{ meta.content }}" />
{% endfor %}
{% endif %}
{% endblock html_metadata %}
{% block metadesc %}
{% if page.summary %}{{ page.summary|e }}{% else %}{{ super() }}{% endif %}
{% if page.summary %}{{ page.summary | striptags | e }}{% else %}{{ super() }}{% endif %}
{% endblock %}
{% block content_all %}

View File

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block title %}Schlagwort: {{ tag }} {{ SITENAME }}{% endblock %}
{% block metadesc %}Alle Einträge zum Schlagwort '{{ tag }}'{% endblock %}
{% block metadesc %}All meine Bücher, Texte und Einträge zum Schlagwort '{{ tag }}'{% endblock %}
{% block content_all %}
{% block content_header %}