2009scape-website/_includes/active-menu.html
Bart Ribbers 4eda43f39b
Use templates better to remove a ton of code duplication (#254)
* Fix broken links in update posts

They were using relative links still which became invalid by moving
directories. It's better to link stuff absolutely anyway.

* Remove unused 'secure' registration and login pages

* Remove obsolete parse.py

* Use templates better to remove a ton of code duplication

Where it made sense I converted HTML pages to Markdown to ease writing
and discourage custom styling as much as possible. These pages can still
use custom HTML when necessary, and some do, but they are easier to read
and understand now.
2024-06-02 19:15:26 +10:00

17 lines
743 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" or crumbs[1] == "site" and crumbs[2] == "archives" %}
<span class="ts">
{% elsif include.content == "help" and crumbs[2] == "help" %}
<span class="ts">
{% else %}
<span class="tl">
{% endif %}