develop a new style
[web.git] / _includes / menu-level.html
index ae2993133446c27d3e950d705b36ff8ccc784053..2b6ca01d25e5ea86b3bc8de57b1c8d5193bc3e49 100644 (file)
@@ -1,12 +1,6 @@
-<ul>{% for item in include.menu %}<!--
-    {% comment %} We compute the full URL of this item, and truncate canonicalurl so that length so we can test whether it starts with it {% endcomment %}
-    {% assign cururl = item.url | prepend: include.base %}
-    {% assign isparent_search = canonicalurl | truncate: cururl.size, '' %}
-    {% capture class %}{% if cururl == canonicalurl %}current{% elsif include.above != true %}child{% elsif isparent_search == cururl %}parent{% else %}sibling{% endif %}{% endcapture %}
-    {% comment %} Now we can output the item and it substructure {% endcomment %}
-    --><li class="{{ class }}"><a href="{{ item.url | prepend: include.base }}">{{ item.title }}</a></li><!--
-    {% if item.structure and (class == "current" or class == "parent") %}
-        {% if cururl == canonicalurl %}{% assign above = false %}{% else %}{% assign above = true %}{% endif %}
-        -->{% include menu-level.html menu=item.structure base=cururl above=above %}<!--
+<ul><!--{% for item in include.menu %}
+    --><li class="{{ item.class }}"><a class="{{ item.class }}" href="{{ item.url }}">{{ item.title }}</a></li><!--
+    {% if item.sub %}
+        --><li class="sub">{% include menu-level.html menu=item.sub %}</li><!--
     {% endif %}
--->{% endfor %}</ul>
+{% endfor %}--></ul>