parent
98f79db819
commit
5ebbfe6819
@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# sets the 'active' class on an item if the url matches the directory
|
# sets the 'active' class on an item if the url matches the directory
|
||||||
urlpath=$(dirname "$ZS_URL")
|
if [ "$(dirname "$ZS_URL")" = $1 ]; then printf ' class=active' ''; fi
|
||||||
test "$1" = $urlpath && printf "active" || true
|
|
||||||
|
@ -1,15 +1,19 @@
|
|||||||
<link href=/style.css rel=stylesheet />
|
<link href=/style.css rel=stylesheet />
|
||||||
|
|
||||||
<nav>
|
<header>
|
||||||
<a href=jonathan.is>jonathan.is</a>
|
<nav>
|
||||||
|
<a href=/>jonathan.is</a>
|
||||||
<menu>
|
<menu>
|
||||||
<li class="{{ active writing }}"><a href=/writing >/writing</a>
|
<li {{ active writing }}><a href=/writing>/writing</a>
|
||||||
<li class="{{ active speaking }}"><a href=/speaking >/speaking</a>
|
<li {{ active speaking }}><a href=/speaking>/speaking</a>
|
||||||
<li class="{{ active coding }}"><a href=/coding >/coding</a>
|
<li {{ active coding }}><a href=/coding>/coding</a>
|
||||||
<li class="{{ active making }}"><a href=/making >/making</a>
|
<li {{ active making }}><a href=/making>/making</a>
|
||||||
<li class="{{ active working }}"><a href=/working >/working</a>
|
<li {{ active working }}><a href=/working>/working</a>
|
||||||
<li class="{{ active living }}"><a href=/living >/living</a>
|
<li {{ active living }}><a href=/living>/living</a>
|
||||||
</menu>
|
</menu>
|
||||||
</nav>
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
</main>
|
||||||
|
Loading…
Reference in new issue