restore author_name in html_head.html

pull/136/head
Aevann 2023-03-04 17:45:37 +02:00
parent 0366b842fa
commit 055d4fce98
1 changed files with 4 additions and 3 deletions

View File

@ -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 =