diff --git a/themes/tabi/templates/page.html b/themes/tabi/templates/page.html index e8aa68f..eb6979a 100644 --- a/themes/tabi/templates/page.html +++ b/themes/tabi/templates/page.html @@ -115,7 +115,7 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {% endif %} {#- Author(s) -#} - {% if page.authors or config.author and macros_settings::evaluate_setting_priority(setting="show_author", page=page, default_global_value=false) == "true" %} + {%- if page.authors or config.author and macros_settings::evaluate_setting_priority(setting="show_author", page=page, default_global_value=false) == "true" -%} {%- if page.authors -%} {%- set author_list = page.authors -%} {%- else -%} @@ -139,20 +139,20 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {%- set by_author = macros_translate::translate(key="by_author", default="By $AUTHOR", language_strings=language_strings) -%}
  • {{ by_author | replace(from="$AUTHOR", to=author_string) | safe }}
  • {%- set previous_visible = true -%} - {% endif %} + {%- endif -%} - {% if config.extra.hcard and config.extra.hcard.enable and ( not author_list or author_list is containing(config.author)) %} + {%- if config.extra.hcard and config.extra.hcard.enable and ( not author_list or author_list is containing(config.author)) -%} {% include "partials/hcard_small.html" %} - {% endif %} + {%- endif -%} {%- set separator_with_class = ""-%} {#- Date -#} - {% if page.date and macros_settings::evaluate_setting_priority(setting="show_date", page=page, default_global_value=true) == "true" %} + {%- if page.date and macros_settings::evaluate_setting_priority(setting="show_date", page=page, default_global_value=true) == "true" -%}
  • {#- Variable to keep track of whether we've shown a section, to avoid separators as the first element -#} {%- set previous_visible = true -%} - {% endif %} + {%- endif -%} {#- Reading time -#} {%- if macros_settings::evaluate_setting_priority(setting="show_reading_time", page=page, default_global_value=true) == "true" -%}