aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/base.html b/templates/base.html
index 8487e14..c8706b5 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -15,11 +15,11 @@
<a href="/"><span class="pink">arslaan</span><span class="white">@</span><span class="yellow">thinkpad-e16-void</span><span class="white">:</span><span class="green bold">~{% if section and section.extra.header_title %}/{{ section.extra.header_title }}{% elif page and page.extra.header_title %}/{{ page.extra.header_title }}{% endif %}</span>
</div>
<nav>
- <a href="/" class="{% if current_path == '/' %}active{% else %}purple{% endif %}">home</a>
- <a href="/projects" class="{% if current_path is starting_with(pat='/projects') %}active{% else %}purple{% endif %}">projects</a>
- <a href="/blog" class="{% if current_path is starting_with(pat='/blog') %}active{% else %}purple{% endif %}">blog</a>
- <a href="/licenses" class="{% if current_path is starting_with(pat='/licenses') %}active{% else %}purple{% endif %}">licenses</a>
- <a href="/pgp" class="{% if current_path is starting_with(pat='/pgp') %}active{% else %}purple{% endif %}">pgp</a>
+ <a href="/" class="{% if current_path and current_path == '/' %}active{% else %}purple{% endif %}">home</a>
+ <a href="/projects" class="{% if current_path and current_path is starting_with(pat='/projects') %}active{% else %}purple{% endif %}">projects</a>
+ <a href="/blog" class="{% if current_path and current_path is starting_with(pat='/blog') %}active{% else %}purple{% endif %}">blog</a>
+ <a href="/licenses" class="{% if current_path and current_path is starting_with(pat='/licenses') %}active{% else %}purple{% endif %}">licenses</a>
+ <a href="/pgp" class="{% if current_path and current_path is starting_with(pat='/pgp') %}active{% else %}purple{% endif %}">pgp</a>
</nav>
</div>
</header>