From 8c517c4c949ab1d7bfa4d172f6e74d76dbf9e3db Mon Sep 17 00:00:00 2001 From: Sascha Date: Mon, 6 May 2024 15:48:14 +0800 Subject: [PATCH] only show co_author if set --- _layouts/post.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index 3328a990..255aa7c5 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -89,9 +89,11 @@

{{ page.title }}

{% include shared/_post_author.html %}
-
- {% include shared/_post_author.html author=co_author %} -
+ {% if page.co_author %} +
+ {% include shared/_post_author.html author=co_author %} +
+ {% endif %}
Diesen Artikel auf GitHub verbessern