Skip to content
Snippets Groups Projects
Verified Commit 7360a891 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Fix check if site is active

parent 685c5c32
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@
{% for title,url in MENUITEMS %}
{% if url is string %}
{% if title != 'Search' %}
<li {% if output_file == link %}class="active"{% endif %}>
<li {% if output_file == url %}class="active"{% endif %}>
<a href="{{ genurl( url ) }}" {{ newtab(url) }}>{{ title }}</a>
</li>
{% endif %}
......@@ -69,7 +69,7 @@
{% elif url is iterable %}
<li class="btn-group
{%- for title,item_url in url -%}
{%- if item_url == link -%}
{%- if item_url == output_file -%}
{{- ' active' -}}
{%- endif -%}
{%- endfor -%}
......@@ -79,7 +79,7 @@
</a>
<ul class="dropdown-menu" role="menu">
{% for title,item_url in url %}
<li {% if item_url == link %}class="active"{% endif %}>
<li {% if item_url == output_url %}class="active"{% endif %}>
<a href="{{ genurl( item_url ) }}" {{ newtab(item_url) }}>{{ title }}</a>
</li>
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment