aboutsummaryrefslogtreecommitdiff
path: root/themes/alps/nav.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/alps/nav.html')
-rw-r--r--themes/alps/nav.html21
1 files changed, 18 insertions, 3 deletions
diff --git a/themes/alps/nav.html b/themes/alps/nav.html
index 820b2e3..3c26166 100644
--- a/themes/alps/nav.html
+++ b/themes/alps/nav.html
@@ -1,8 +1,23 @@
<header>
<nav>
- <a href="/" class="active">Email</a>
- <a href="/calendar">Calendar</a>
- <a href="/contacts">Contacts</a>
+ {{$page := (index .GlobalData.Path 0)}}
+ <a href="/"
+ {{ if or (eq $page "mailbox") (eq $page "message") }}
+ class="active"
+ {{ end }}
+ >Email</a>
+ <a
+ href="/calendar"
+ {{ if eq $page "calendar" }}
+ class="active"
+ {{ end }}
+ >Calendar</a>
+ <a
+ href="/contacts"
+ {{ if eq $page "contacts" }}
+ class="active"
+ {{ end }}
+ >Contacts</a>
<div>
<span>{{ .GlobalData.Username }}</span>
<a href="/settings">Settings</a>