aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html31
1 files changed, 25 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index c5f73ba..507553d 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,9 +1,28 @@
{{ define "main" }}
-<div class="container mx-auto my-5">
- <div class="post">
- {{ partial "single/header.html" . }}
- <div class="e-content">{{ .Content }}</div>
- {{ partial "single/footer.html" . }}
- </div>
+<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 len .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="e-content">{{ .Content }}</div>
+ {{ partial "single/footer.html" . }}
+ </div>
+ </div>
+ </div>
</div>
{{ end }}