forked from deepStateMirrors/tabi
♻️ refactor: add "target_attribute" macro (#515)
Co-authored-by: Óscar <welpo@users.noreply.github.com>
This commit is contained in:
parent
221e245671
commit
f47cefd42b
5 changed files with 15 additions and 15 deletions
|
@ -5,11 +5,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) -%}
|
||||
|
||||
{# Debugging #}
|
||||
{# <div><pre>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue