♻️ refactor: add target_attribute macro

This commit is contained in:
2025-04-28 16:11:01 +07:00
parent cbb52d74a4
commit 74abf0aac6
5 changed files with 15 additions and 15 deletions

View File

@@ -2,11 +2,7 @@
{%- set rel_attributes = macros_rel_attributes::rel_attributes() | trim -%}
{%- if config.markdown.external_links_target_blank -%}
{%- set blank_target = "target=_blank" -%}
{%- else -%}
{%- set blank_target = "" -%}
{%- endif -%}
{%- set blank_target = macros_target_attribute::target_attribute(new_tab=config.markdown.external_links_target_blank) -%}
{#- Feed icon -#}
{#- Zola 0.19.0 uses `generate_feeds`. Prior versions use `generate_feed` -#}