summaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-24 10:02:06 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-24 10:02:06 +0200
commit8b81f8aaa9c272a8c2a27d2edde12b4070e1212c (patch)
tree044da6b1aff4ea06c502d10209b1039f56eae47c /layouts/_default
parentfbcb1c002a30382b7e999be6e3bd6065e80cfaca (diff)
downloadgohugo-theme-ed-8b81f8aaa9c272a8c2a27d2edde12b4070e1212c.tar.gz
Wrap content
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 13630ce..c12c001 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -9,5 +9,28 @@
{{- partial "sidebar.html" . -}}
{{- end -}}
+ <!--
+ Wrap is the content to shift when toggling the sidebar.
+ We wrap the content to avoid any CSS collisions with our
+ real content.
+ -->
+ <div class="wrap">
+ <header class="masthead">
+ <div class="container">
+ <h3 class="masthead-title">
+ <a href="{{ .Site.Home.RelPermalink }}" title="Home">{{ .Site.Title }}</a>
+ <br><small>{{ .Site.Params.tagline }}</small>
+ </h3>
+ </div>
+ </header>
+
+ <main class="container content" id="main">
+ {{- block "main" . }}{{- end }}
+ </main>
+ </div>
+
+ <label for="sidebar-checkbox" class="sidebar-toggle"></label>
+
+ {{- partial "script.html" . -}}
</body>
</html>