Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zhaohuabing/hugo-theme-cleanwhite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-Yi Hsieh <cyhsieh264@gmail.com>2022-07-07 02:43:43 +0300
committerzhaohuabing <zhaohuabing@gmail.com>2022-07-07 03:11:04 +0300
commit9f4dfe21f6a20fef5ecd07e1f33520717aaa5095 (patch)
tree771a7f66b6c764c9117d7bf7f0d591f56cf2a562
parenta198db6a097e0ee636a5069984bfa9ab3d323fd3 (diff)
Add if statement for pager section
-rw-r--r--layouts/_default/single.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 4c9bf3b..95be832 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -83,6 +83,7 @@
{{ partial "reward.html" . }}
{{ end }}
+ {{ if or (.PrevInSection) (.NextInSection) }}
<hr>
<ul class="pager">
{{ if .PrevInSection }}
@@ -98,6 +99,8 @@
</li>
{{ end }}
</ul>
+ {{ end }}
+
{{ partial "comments.html" . }}
</div>