From 42d65ef9dcd9a1cc46c694f56f42dd10ec0c5f99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomi=20Valentov=C3=A1?= <git@imaniti.org>
Date: Tue, 23 Jul 2024 12:52:19 +0200
Subject: [PATCH] fix author display

---
 .../atoms/articles/header_author.html         | 26 ++++++++++---------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/shared/templates/styleguide2/includes/atoms/articles/header_author.html b/shared/templates/styleguide2/includes/atoms/articles/header_author.html
index 593d68fa..70a2588e 100644
--- a/shared/templates/styleguide2/includes/atoms/articles/header_author.html
+++ b/shared/templates/styleguide2/includes/atoms/articles/header_author.html
@@ -1,12 +1,14 @@
-<div class="text-grey-185 mb-4 italic">
-  Autor: <span rel="author">
-    {% if page.author_page %}
-      <a
-        href="{{ page.author_page.url }}"
-        class="underline text-grey-100"
-      >{{ page.author_page.get_full_name }}</a>
-    {% else %}
-      {{ page.author }}
-    {% endif %}
-  </span>
-</div>
+{% if page.author_page or page.author %}
+  <div class="text-grey-185 mb-4 italic">
+    Autor: <span rel="author">
+      {% if page.author_page %}
+        <a
+          href="{{ page.author_page.url }}"
+          class="underline text-grey-100"
+        >{{ page.author_page.get_full_name }}</a>
+      {% elif page.author %}
+        {{ page.author }}
+      {% endif %}
+    </span>
+  </div>
+{% endif %}
\ No newline at end of file
-- 
GitLab