From 2e7bfa49a7cd22c2a58809deeb5e513fcf14d6c0 Mon Sep 17 00:00:00 2001 From: Kara Engelhardt Date: Mon, 22 Jul 2024 15:37:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Blog:=20Only=20show=20author=20p?= =?UTF-8?q?rofile=20link=20if=20author=20has=20a=20profile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fds_blog/templates/fds_blog/includes/_authors.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fragdenstaat_de/fds_blog/templates/fds_blog/includes/_authors.html b/fragdenstaat_de/fds_blog/templates/fds_blog/includes/_authors.html index 6c1e75f7b..aacca66fd 100644 --- a/fragdenstaat_de/fds_blog/templates/fds_blog/includes/_authors.html +++ b/fragdenstaat_de/fds_blog/templates/fds_blog/includes/_authors.html @@ -22,9 +22,12 @@ {% spaceless %} {% for author in authors %} - {# djlint:off #} - {% if article.credits or not forloop.last %},{% endif %} - {# djlint:on #} + {% if author.get_absolute_url %} + + {% else %} + {{ author.get_full_name }} + {% endif %} + {% if article.credits or not forloop.last %},{% endif %} {% endfor %} {{ article.credits }}