summaryrefslogtreecommitdiffstats
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-27 00:56:19 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-27 00:56:19 +0200
commit7f391e070f69ecf01ade7916c0f83df099b11d79 (patch)
tree0916ac1c288e91806d455d7609656d51748600ae /layouts/_default/baseof.html
parentd356641e2b45db0f87f64956ff91240edadf0a97 (diff)
downloadgohugo-theme-ed-7f391e070f69ecf01ade7916c0f83df099b11d79.tar.gz
Reformat a bit layout structure
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html15
1 files changed, 1 insertions, 14 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index b33c566..190acab 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -2,18 +2,7 @@
<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
{{- partial "head.html" . -}}
<body class="theme-base-{{ .Site.Params.color_scheme }}">
- <!-- This if statement decides which sidebar to use -->
- {{- if .Params.toc -}}
- {{- partial "sidebar-toc.html" . -}}
- {{- else -}}
- {{- 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.
- -->
+ {{ if .Params.toc }}{{ partial "sidebar-toc.html" . }}{{ else }}{{ partial "sidebar.html" . }}{{ end }}
<div class="wrap">
<header class="masthead">
<div class="container">
@@ -30,7 +19,5 @@
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
-
- {{- partial "scripts.html" . -}}
</body>
</html>