aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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">