aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-22 03:23:11 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-22 03:23:11 +0300
commit339a4b76073832f8ff741b6a698a0de22c1a1b6c (patch)
tree8470100374077dc9f4e5964223d059261426d377
parent398867b5661a0a5b025274c451679d5582b0a947 (diff)
Auto-commit 2024-12-22HEADmaster
-rw-r--r--layouts/_default/single.html12
-rw-r--r--layouts/go/single.html12
-rw-r--r--layouts/projects/single.html10
3 files changed, 4 insertions, 30 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f8112c5..55bd2d5 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -4,16 +4,8 @@
<div class="col-xs-12 col-sm-12 col-md-4 sidebar">
<h1 class="post-title fw-semibold">&larr;<a href="{{.Page.FirstSection.RelPermalink}}">{{.Page.FirstSection.Title}}</a></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>
+ <h2 class="fw-semibold">Содержание</h2>
+ {{ .Page.TableOfContents }}
{{ end }}
</div>
<div class="col-xs-12 col-sm-12 col-md-8 content">
diff --git a/layouts/go/single.html b/layouts/go/single.html
index f8dc52f..3b97a36 100644
--- a/layouts/go/single.html
+++ b/layouts/go/single.html
@@ -4,16 +4,8 @@
<div class="col-xs-12 col-sm-12 col-md-4 sidebar">
<h1 class="post-title fw-semibold">&larr;<a href="{{.Page.FirstSection.RelPermalink}}">{{.Page.FirstSection.Title}}</a></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>
+ <h2 class="fw-semibold">Содержание</h2>
+ {{ .Page.TableOfContents }}
{{ end }}
</div>
<div class="col-xs-12 col-sm-12 col-md-8 content">
diff --git a/layouts/projects/single.html b/layouts/projects/single.html
index 30ff8e4..9dea045 100644
--- a/layouts/projects/single.html
+++ b/layouts/projects/single.html
@@ -7,16 +7,6 @@
<h2 class="fw-semibold">Содержание</h2>
{{ .Page.TableOfContents }}
{{ end }}
- {{if .Page.CurrentSection.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">