diff options
author | Óscar Nájera <hello@oscarnajera.com> | 2018-07-09 00:00:12 +0200 |
---|---|---|
committer | Óscar Nájera <hello@oscarnajera.com> | 2018-07-09 00:00:12 +0200 |
commit | 15a77de868a966ac583cc3b6ace8bf5803e36185 (patch) | |
tree | 1e47d9a0da8a86b776d52246474a5dbe8b762282 /layouts/partials/header.html | |
parent | 5346283419f792276c22dc4d4c4b1b2c6f357073 (diff) | |
download | hugo-minimalist-theme-15a77de868a966ac583cc3b6ace8bf5803e36185.tar.gz hugo-minimalist-theme-15a77de868a966ac583cc3b6ace8bf5803e36185.tar.bz2 hugo-minimalist-theme-15a77de868a966ac583cc3b6ace8bf5803e36185.zip |
Improve sidebar
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f989b8e..e9b4597 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -4,13 +4,13 @@ {{ .Scratch.Set "authorPicture" (absURL .Site.Author.picture) }} {{ end }} -<nav id="sidebar" class="w-25-ns bg-gray" style="display:none"> +<nav id="sidebar" class="w5-ns w-100 bg-gray vh-100" style="background-image:url('{{ .Site.Params.coverImage | absURL }}');"> <a class="bg-black white link dim db pa3 tc pointer" onclick="w3_close()"> Close × </a> <div class="tc pv4"> - <a href="/#about" class=""> + <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 }} @@ -23,7 +23,7 @@ {{ $currentPage := . }} {{ range .Site.Menus.main }} <li class="pv2"> - <a class="link {{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}active{{end}}" href="{{ .URL | relLangURL }}" title="{{ .Title }}"> + <a class="link white db grow {{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}active{{end}}" href="{{ .URL | relLangURL }}" title="{{ .Title }}"> {{ .Pre }} {{ .Name }}</a> {{ end }} </li> |