mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
apply requested changes from PR #515
This commit is contained in:
parent
f97da84203
commit
5a720ea2da
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{% macro target_attribute(new_tab=false) %}
|
||||
{% macro target_attribute(new_tab) %}
|
||||
|
||||
{%- set blank_target = "" -%}
|
||||
|
||||
|
|
|
@ -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) %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue