aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2022-01-01 21:03:20 +0100
committerÓscar Nájera <hi@oscarnajera.com>2022-01-01 21:03:20 +0100
commit113d4e53416ddf42212da6f217670bdc6f0c9dd8 (patch)
tree7e9bcd4a2a274e45da5538fe67c525dfb36680de /layouts/partials/header.html
parente34ded01904b07456a48cf28f1a5a2d2d77a0be7 (diff)
downloadhugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.gz
hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.bz2
hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.zip
Import new minimalist design
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html63
1 files changed, 23 insertions, 40 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 9b2aaab..ef345ca 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,44 +1,27 @@
-{{ if .Site.Author.gravataremail }}
- {{ .Scratch.Set "authorPicture" (printf "//www.gravatar.com/avatar/%s" (urlize (md5 (.Site.Author.gravataremail )))) }}
-{{ else if .Site.Author.picture }}
- {{ .Scratch.Set "authorPicture" (absURL .Site.Author.picture) }}
-{{ end }}
+<nav class="header w-100 w3-theme-d3 w3-theme-border z-2 cf">
+ <a href="{{ site.BaseURL }}" class="pl5 db fl link">
-<nav id="sidebar" class="fl w-25-ns bg-gray vh-100-ns">
- <div class="tc pv4">
- <a href="/#about" class="white link">
- {{ with ($.Scratch.Get "authorPicture") }}
- <img class="br-100" src="{{ . }}{{ if in . "//www.gravatar.com/avatar/" }}?s=110{{ end }}"/>
- {{ end }}
- <h3 class="f3">
- {{ .Site.Author.name }}
- </h3>
- </a>
- </div>
- <ul class="list bd ba">
- {{ range .Site.Menus.main }}
- <li class="ma2 dib">
- <a class="link white db grow" href="{{ .URL | relLangURL }}" title="{{ .Title }}">
- {{ .Pre }} {{ .Name }}</a>
- </li>
- {{ end }}
- </ul>
- <ul class="list">
- {{ range .Site.Menus.links }}
- <li class="pv2">
- <a class="link white db grow" href="{{ .URL | relLangURL }}" title="{{ .Title }}">
- {{ .Pre }} {{ .Name }}</a>
- </li>
- {{ end }}
- </ul>
+ {{ 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>
- <ul class="list">
- {{ range .Site.Menus.misc }}
- <li class="pv2">
- <a class="link white db grow" href="{{ .URL | relLangURL }}" title="{{ .Title }}">
- {{ .Pre }} {{ .Name }}</a>
- </li>
- {{ end }}
- </ul>
+ </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 br w3-theme-border">
+ {{ range .Site.Menus.main }}
+ <li class="fl-ns bl bb br2 w3-hover-theme w3-theme-border ">
+ <a class="db f6 pa3 link near-white grow"
+ href="{{ .URL }}">{{$text := print .Name | safeHTML }} {{ $text }}
+ </a>
+ </li>
+ {{ end }}
+ </ul>
</nav>