aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2019-06-15 02:57:25 +0200
committerÓscar Nájera <hello@oscarnajera.com>2019-06-15 02:57:25 +0200
commite34ded01904b07456a48cf28f1a5a2d2d77a0be7 (patch)
tree91178a5580504a58bd5612c1448a3fac403f07e3 /layouts/partials
parentd1916e3b595abbb08d90a32f5c34f9cf64d38c9f (diff)
downloadhugo-minimalist-theme-e34ded01904b07456a48cf28f1a5a2d2d77a0be7.tar.gz
hugo-minimalist-theme-e34ded01904b07456a48cf28f1a5a2d2d77a0be7.tar.bz2
hugo-minimalist-theme-e34ded01904b07456a48cf28f1a5a2d2d77a0be7.zip
Simplifying parts of the themeHEADmaster
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/head.html8
-rw-r--r--layouts/partials/header.html27
3 files changed, 4 insertions, 33 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index d4216d8..d437bde 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,4 +1,4 @@
-<footer id="footer" class="center pa2 bg-white-40">
+<footer id="footer" class="fl center pa2 bg-white-40">
<span class="db tc black-80">
&copy; {{ now.Format "2006" }} {{ with .Site.Params.footer.copyright }}{{ . | safeHTML }}{{ else }}{{ with .Site.Author.name }}{{ . }}{{ else }}{{ with .Site.Title }}{{ . }}{{ end }}{{ end }}{{ end }}. All Rights Reserved
</span>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 2cb900d..adaa5ab 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -43,11 +43,3 @@
padding: 0.5em;}
</style>
-<script>
- function w3_open() {
- document.getElementById("sidebar").style.display = "block";
- }
- function w3_close() {
- document.getElementById("sidebar").style.display = "none";
- }
-</script>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 41bfd71..9b2aaab 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,11 +4,7 @@
{{ .Scratch.Set "authorPicture" (absURL .Site.Author.picture) }}
{{ end }}
-<nav id="sidebar" class="w5-ns w-100 bg-gray vh-100 fixed z-2 overflow-auto dn" style="background-image:url('{{ .Site.Params.coverImage | absURL }}');">
- <a class="bg-black white link dim db pa3 tc pointer" onclick="w3_close()">
- Close &times;
- </a>
-
+<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") }}
@@ -19,9 +15,9 @@
</h3>
</a>
</div>
- <ul class="list">
+ <ul class="list bd ba">
{{ range .Site.Menus.main }}
- <li class="pv2">
+ <li class="ma2 dib">
<a class="link white db grow" href="{{ .URL | relLangURL }}" title="{{ .Title }}">
{{ .Pre }} {{ .Name }}</a>
</li>
@@ -46,20 +42,3 @@
</ul>
</nav>
-
-<nav class="fixed z-1 dt w-100 border-box pa2 bb b--black-30 bg-near-white">
-
- <a class="dtc dib v-mid dim " onclick="w3_open()">
- <i class="fa fa-lg fa-bars black"></i>
- </a>
-
- <a href="{{ "/" | relLangURL }}" class="dtc v-mid link dim tc">
- <div class="f4 dib black-80 b">{{ .Site.Title }}</div>
- </a>
-
- {{ with ($.Scratch.Get "authorPicture") }}
- <a href="/#about" class="dtc dim tr">
- <img class="dib v-mid dib w2 h2 br-100" src="{{ . }}{{ if in . "//www.gravatar.com/avatar/" }}?s=90{{ end }}"/>
- </a>
- {{ end }}
-</nav>