on master help sign in
Conditional so updates / default pages use inherited header
commitf22eeb73d2a329d5bafba18feb9db6ad3951b18c authorMatilde Park <matilde@tlon.io> dateMon 9 Sep 2019, 13:12 (7 years ago) parent73ed50e
1 file changed+9−1
templates/page.html+9−1
templates/page.html+9−1
@@ -11,7 +11,15 @@
1111
1212<!-- header -->
1313<!-- content -->
14−{% if page.title %}
14+{% if page.components[1] %}
15+<nav class="mt6 full fourth-1-md fourth-1-lg">
16+ <a class="gray3" href="/">Urbit</a>
17+ <span class="gray3"> / </span>
18+ <a href="/{{ page.components[0] }}">
19+ {{ page.components[0] | capitalize }}
20+ </a>
21+</nav>
22+{% else %}
1523<nav class="mt6 full fourth-1-md fourth-1-lg">
1624 <a class="gray3" href="/">Urbit</a>
1725 <span class="gray3"> / </span>