aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html46
1 files changed, 26 insertions, 20 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index c0418b2..0d777ca 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,27 +1,33 @@
<nav class="header w-100 w3-theme-d3 w3-theme-border z-2 cf">
<div class="mw7 center pl2">
- <a href="{{ site.BaseURL }}" class="db fl link">
+ <a href="{{ site.BaseURL }}" class="db fl link">
+ {{ with resources.Get .Site.Params.logo }}
+ <img
+ height="{{ site.Params.logo_height }}"
+ class="v-btm"
+ src="{{ .Permalink }}"
+ alt="{{ site.Title }}"
+ />
+ {{ end }}
- {{ with resources.Get .Site.Params.logo }}
- <img height="{{ site.Params.logo_height }}" class="v-btm" src="{{ .Permalink }}" alt="{{ site.Title }}">
- {{ end }}
- <span class="near-white pl2 pt0 f2 berkshire-swash">
- {{ .Site.Title }}
- </span>
- </a>
- <input class="menu-btn dn" type="checkbox" id= "menu-btn">
- <label class="fr dn-ns ma2 pa3 menu-icon" for="menu-btn">
- <span class="navicon bg-near-white"></span>
- </label>
- <ul class="ma0 pa0 list overflow-hidden avenir">
+ <span class="near-white pl2 pt0 f2 berkshire-swash">
+ {{ .Site.Title }}
+ </span>
+ </a>
+ <input class="menu-btn dn" type="checkbox" id="menu-btn" />
+ <label class="fr dn-ns ma2 pa3 menu-icon" for="menu-btn">
+ <span class="navicon bg-near-white"></span>
+ </label>
+ <ul class="ma0 pa0 list overflow-hidden avenir">
{{ range .Site.Menus.main }}
- <li class="fl-ns w3-hover-theme">
- <a class="db f6 pa3 link near-white"
- href="{{ .URL }}">{{ .Name | safeHTML }}
- </a>
- </li>
+ <li class="fl-ns w3-hover-theme">
+ <a class="db f6 pa3 link near-white" href="{{ .PageRef }}">
+ {{ .Pre }}
+ {{- .Name | safeHTML -}}
+ </a>
+ </li>
{{ end }}
- </ul>
-</div>
+ </ul>
+ </div>
</nav>