diff options
author | Francesco <tomaselli.fr@gmail.com> | 2024-06-24 18:44:39 +0200 |
---|---|---|
committer | Francesco <tomaselli.fr@gmail.com> | 2024-06-24 18:44:39 +0200 |
commit | ec3f104c10ba40ed5050a61afed9d5410ffae1a5 (patch) | |
tree | 45711275584ef4ce1d4d96acf1ddf8f5651a71e1 /layouts/_default | |
parent | 362d739cd496b3d7d8d03bb4696380f440829ca9 (diff) |
Pagination on single posts
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/single.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index dc391d6..a8f5079 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" }} -{{/* Intro */}} +{{/* Breadcrumbs */}} {{ partial "breadcrumbs.html" . }} @@ -59,13 +59,21 @@ </aside> {{ end }} - {{/* Actual document content */}} + {{/* Page content */}} <div class="single-content"> {{ .Content }} {{ partial "comments.html" . }} </div> + {{/* Next prev controls */}} + + {{ if not (.Param "hidePagination") }} + {{ partial "pagination-single.html" . }} + {{ end }} + + {{/* Back to top */}} + {{ if not (.Param "hideBackToTop") }} <div class="back-to-top"> <a href="#top"> |