2009scape-website/_includes/active-menu.html

17 lines
692 B
HTML

{% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
{% if crumbs.size < 2 %}
{% if include.content == "home" %}
<span class="ts">
{% endif %}
<!-- Liquid logic is read from right to left -->
{% elsif include.content == "updates" and crumbs[1] == "updates"%}
<span class="ts">
{% elsif include.content == "guide" and crumbs[2] == "game_guide" or crumbs[2] == "rules" %}
<span class="ts">
{% elsif include.content == "community" and crumbs[2] == "community" or crumbs[2] == "m=hiscore" %}
<span class="ts">
{% elsif include.content == "help" and crumbs[2] == "help" %}
<span class="ts">
{% else %}
<span class="tl">
{% endif %}