homepage/themes/tabi-lean/templates/macros/target_attribute.html

11 lines
204 B
HTML

{% macro target_attribute(new_tab) %}
{%- set blank_target = "" -%}
{%- if new_tab -%}
{%- set blank_target = "target=_blank" -%}
{%- endif -%}
{{ blank_target }}
{% endmacro target_attribute %}