From 3cf8dc6ed7bfa05d168be90f021ce6edd1a0dcf2 Mon Sep 17 00:00:00 2001 From: Tobias Feigel Date: Sat, 6 Sep 2025 19:03:13 +0200 Subject: [PATCH] Fixes display of author avatar and league links Ensures author avatar is only displayed if it exists. Uses dynamic league IDs from the `spielbetrieb` page in the navbar, which allows changing the league links in the backend. --- .../20250415-vereinsblitzmeisterschaft/news.txt | 2 +- site/snippets/home-news.php | 4 +++- site/snippets/navbar.php | 13 +++++++++---- site/templates/blog.php | 4 +++- site/templates/news.php | 4 +++- 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/content/2_news/20250415-vereinsblitzmeisterschaft/news.txt b/content/2_news/20250415-vereinsblitzmeisterschaft/news.txt index 3ad6060..2003094 100644 --- a/content/2_news/20250415-vereinsblitzmeisterschaft/news.txt +++ b/content/2_news/20250415-vereinsblitzmeisterschaft/news.txt @@ -45,7 +45,7 @@ Tags: Vereinsmeisterschaft, Spielbericht ---- -Author: - user://myU6sssZ +Author: - user://KOY9VcGi ---- diff --git a/site/snippets/home-news.php b/site/snippets/home-news.php index c3764f1..d84c9e4 100644 --- a/site/snippets/home-news.php +++ b/site/snippets/home-news.php @@ -31,7 +31,9 @@ author()->toUser()): ?>
- + avatar()): ?> + +

diff --git a/site/snippets/navbar.php b/site/snippets/navbar.php index 7cefcf6..93b8601 100644 --- a/site/snippets/navbar.php +++ b/site/snippets/navbar.php @@ -1,3 +1,8 @@ +aklasse(); + $bklasse = page('spielbetrieb')->bklasse(); +?> +