diff options
author | Volpeon <git@volpeon.ink> | 2021-11-13 12:09:34 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-11-13 12:09:34 +0100 |
commit | 8eecc3db90b8963cf3d85d2d144c2a38aa3f86a0 (patch) | |
tree | efda55157cb1665f69dc451a77689980f3ba0749 /templates/base.html | |
parent | Improved page (diff) | |
download | volpeon.ink-8eecc3db90b8963cf3d85d2d144c2a38aa3f86a0.tar.gz volpeon.ink-8eecc3db90b8963cf3d85d2d144c2a38aa3f86a0.tar.bz2 volpeon.ink-8eecc3db90b8963cf3d85d2d144c2a38aa3f86a0.zip |
Simplified header
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/templates/base.html b/templates/base.html index 6424447..e736864 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -44,25 +44,23 @@ | |||
44 | </head> | 44 | </head> |
45 | 45 | ||
46 | <body> | 46 | <body> |
47 | <header class="c-header"> | 47 | <nav class="c-header"> |
48 | <nav class="c-header__nav"> | 48 | <a class="c-header__item c-header__item--icon" href="/" title="$site.title$"> |
49 | <a class="c-header__item c-header__item--icon" href="/" title="$site.title$"> | 49 | <svg class="c-header__icon" width="1em" height="1em"> |
50 | <svg class="c-header__icon" width="1em" height="1em"> | 50 | <use href="/symbols.svg#logo"></use> |
51 | <use href="/symbols.svg#logo"></use> | 51 | </svg> |
52 | </svg> | 52 | </a> |
53 | </a> | 53 | $if(namespace.root.is_index)$ |
54 | $if(namespace.root.is_index)$ | 54 | $else$ |
55 | $else$ | 55 | $for(menus.main.items)$ |
56 | $for(menus.main.items)$ | 56 | $if(it.active)$ |
57 | $if(it.active)$ | 57 | <a class="c-header__item" href="$it.url$"> |
58 | <a class="c-header__item" href="$it.url$"> | 58 | $it.label$ |
59 | $it.label$ | 59 | </a> |
60 | </a> | 60 | $endif$ |
61 | $endif$ | 61 | $endfor$ |
62 | $endfor$ | 62 | $endif$ |
63 | $endif$ | 63 | </nav> |
64 | </nav> | ||
65 | </header> | ||
66 | 64 | ||
67 | <main> | 65 | <main> |
68 | $if(namespace.root.is_index)$ | 66 | $if(namespace.root.is_index)$ |