diff options
author | Chia-Yi Hsieh <cyhsieh264@gmail.com> | 2022-07-07 02:43:43 +0300 |
---|---|---|
committer | zhaohuabing <zhaohuabing@gmail.com> | 2022-07-07 03:11:04 +0300 |
commit | 9f4dfe21f6a20fef5ecd07e1f33520717aaa5095 (patch) | |
tree | 771a7f66b6c764c9117d7bf7f0d591f56cf2a562 | |
parent | a198db6a097e0ee636a5069984bfa9ab3d323fd3 (diff) |
Add if statement for pager section
-rw-r--r-- | layouts/_default/single.html | 3 |
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> |