Browse Source

Add proper HTML white-space between attributes when menu entry is selected.

main
Simon Warta 11 years ago
committed by Lakshmi Vyasarajan
parent
commit
c72583a2cf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      hyde/layouts/starter/layout/macros.j2

+ 2
- 2
hyde/layouts/starter/layout/macros.j2 View File

@@ -4,7 +4,7 @@
{% macro render_basic_menu() -%}
<ul class="basic">
{% for menu_item in menu -%}
<li><a {% if (menu_item.url == resource.url) %}class="selected"{% endif -%}
<li><a {% if (menu_item.url == resource.url) %}class="selected" {% endif -%}
href="{{ content_url(menu_item.url) }}">{{ menu_item.title }}</a></li>
{%- endfor %}
</ul>
@@ -18,7 +18,7 @@
{% macro render_advanced_menu() -%}
<ul class="advanced">
{% for res in site.content.walk_resources_sorted_by_index() %}
<li><a {% if (res.url == resource.url) %}class="selected"{% endif -%}
<li><a {% if (res.url == resource.url) %}class="selected" {% endif -%}
href="{{ res.full_url }}">{{ res.meta.title }}
</a></li>
{% endfor %}


Loading…
Cancel
Save