aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-08 23:38:03 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-08 23:38:03 +0200
commit5346283419f792276c22dc4d4c4b1b2c6f357073 (patch)
treedfbed7903cdc7e194887d17c7fc7f1bc09fb2d17 /layouts/partials/head.html
parent4a1663d8d1728402f1dd9e95d6ae5b764224802c (diff)
downloadhugo-minimalist-theme-5346283419f792276c22dc4d4c4b1b2c6f357073.tar.gz
hugo-minimalist-theme-5346283419f792276c22dc4d4c4b1b2c6f357073.tar.bz2
hugo-minimalist-theme-5346283419f792276c22dc4d4c4b1b2c6f357073.zip
Hide and show sidebar
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index f061a00..45eb8db 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,6 +14,10 @@
<!-- CSS -->
<style>
+ #sidebar {
+ position:fixed;
+ z-index: 1;
+ }
.post-header {
text-shadow: 0 2px 1px rgba(0,0,0,0.9);}
@@ -22,3 +26,11 @@
color: #dcdcdc;
padding: 0.5em;}
</style>
+<script>
+function w3_open() {
+ document.getElementById("sidebar").style.display = "block";
+}
+function w3_close() {
+ document.getElementById("sidebar").style.display = "none";
+}
+</script>