aboutsummaryrefslogtreecommitdiff
path: root/layouts/go/single.html
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-22 02:13:20 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-22 02:13:20 +0300
commitef736304163e0952735a8620a48564c288864a94 (patch)
tree2155560a188341cf6d242856e397aa20775ca512 /layouts/go/single.html
parent4a53507256bfefd1e8094defd98d6b28316fa965 (diff)
Auto-commit 2024-12-22
Diffstat (limited to 'layouts/go/single.html')
-rw-r--r--layouts/go/single.html22
1 files changed, 21 insertions, 1 deletions
diff --git a/layouts/go/single.html b/layouts/go/single.html
index 75cf89f..99c6d28 100644
--- a/layouts/go/single.html
+++ b/layouts/go/single.html
@@ -1,5 +1,22 @@
{{ define "main" }}
-<div class="container mx-auto my-5">
+<div class="container">
+ <div class="row">
+ <div class="col-xs-12 col-sm-12 col-md-4 sidebar">
+ <h1 class="post-title fw-semibold">{{.Page.FirstSection.Title}}</h1>
+ {{ if .Page.TableOfContents }}
+ <h2 class="fw-semibold">Содержание</h2>
+ {{ .Page.TableOfContents }} {{ end }} {{if .Page.FirstSection.Pages}}
+ <h2 class="fw-semibold">Остальное</h2>
+ <ul>
+ {{ range .Page.CurrentSection.Pages }}
+ <li>
+ <a href="{{ .RelPermalink }}">{{ .Title }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ end }}
+ </div>
+ <div class="col-xs-12 col-sm-12 col-md-8 content">
<div class="post">
{{ partial "single/header.html" . }}
<div class="alert alert-info" role="alert">
@@ -14,4 +31,7 @@
{{ partial "single/footer.html" . }}
</div>
</div>
+ </div>
+ </div>
+ </div>
{{ end }} \ No newline at end of file