From 055d4fce985bf31fc1672093dbecbfbc5880fe52 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 4 Mar 2023 17:45:37 +0200 Subject: [PATCH] restore author_name in html_head.html --- files/templates/util/html_head.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files/templates/util/html_head.html b/files/templates/util/html_head.html index 3df02b1f8..c98032827 100644 --- a/files/templates/util/html_head.html +++ b/files/templates/util/html_head.html @@ -12,7 +12,7 @@ {% endmacro %} {% macro page_meta(title=none) %} - {% if 'post/' in request.path and p and p.author_name %} + {% if 'post/' in request.path and p %} {% if not v_forbid_deleted -%} {% set image = p.thumb_url if p.has_thumb %} {% set image = p.realurl(v) if p.is_image %} @@ -25,8 +25,9 @@ '"', title, '"'] | join %} {% endif %} - {% set description, published, modified, url = - p.plainbody(v), p.created_datetime, p.edited_string, p.permalink %} + {% set author, description, a_author, published, modified, url = + '@'+p.author_name, p.plainbody(v), '@'+p.author_name, + p.created_datetime, p.edited_string, p.permalink %} {% elif '@' in request.path and u %} {% set author, a_author, published, url, title, image, section =