From c5ee41ddae9a13dd35ecb2e0a7e81769c1359eba Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 27 Apr 2020 09:14:14 -0400 Subject: [PATCH] remove pagnitaiton form sigle pages --- layouts/_default/single.html | 29 +++----------------------- layouts/partials/posts_pagination.html | 26 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 26 deletions(-) create mode 100644 layouts/partials/posts_pagination.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d017884..702664e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -34,32 +34,9 @@ {{- end -}} - {{ if or .NextInSection .PrevInSection }} - + + {{ if eq .Type $.Site.Params.contentTypeName }} + {{ partial "posts_pagination.html" . }} {{ end }} {{ partial "comments.html" . }} diff --git a/layouts/partials/posts_pagination.html b/layouts/partials/posts_pagination.html new file mode 100644 index 0000000..04951d5 --- /dev/null +++ b/layouts/partials/posts_pagination.html @@ -0,0 +1,26 @@ +{{ if or .NextInSection .PrevInSection }} + +{{ end }} \ No newline at end of file