mirror of
https://github.com/avitex/avitex.github.io
synced 2024-11-16 17:39:57 +00:00
15 lines
376 B
HTML
15 lines
376 B
HTML
|
{% macro link(url) %}
|
||
|
{%- if url is starting_with("/") or url is starting_with("./") -%}
|
||
|
{{ get_url(path=url) }}
|
||
|
{%- else -%}
|
||
|
{{ url }}
|
||
|
{%- endif -%}
|
||
|
{% endmacro link %}
|
||
|
|
||
|
{% macro is_active_nav(url, curr_url) %}
|
||
|
{%- if url == get_url(path="/") -%}
|
||
|
{{ url == curr_url }}
|
||
|
{%- else -%}
|
||
|
{{ curr_url is starting_with(url) }}
|
||
|
{%- endif -%}
|
||
|
{% endmacro is_active_nav %}
|