apply requested changes from PR #515

This commit is contained in:
tzinm 2025-04-23 20:10:01 +02:00
parent f97da84203
commit 5a720ea2da
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{% macro target_attribute(new_tab=false) %}
{% macro target_attribute(new_tab) %}
{%- set blank_target = "" -%}

View file

@ -7,7 +7,7 @@
{% break %}
{% endif %}
{# Determine which URL to use, default is page.permalink #}
{%- set blank_target = macros_target_attribute::target_attribute(new_tab=config.markdown.external_links_target_blank or page.extra.link_to ) -%}
{%- set blank_target = macros_target_attribute::target_attribute(new_tab=config.markdown.external_links_target_blank and page.extra.link_to) -%}
{% set target_url = page.extra.link_to | default(value=page.permalink) %}