From 350f4a8e029e78bfef82832b35fa833f9912af93 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Thu, 7 Dec 2017 13:53:04 -0500 Subject: [PATCH 1/4] Remove next/previous for pages --- layouts/_default/single.html | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 419edb2..5ade67e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,18 +6,20 @@ {{ .Content }} - + {{ if ne .Params.type "page" }} + + {{ end }} {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }} From 3e553102fc3e23e4ebedc92f7de077360c770ef2 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Thu, 7 Dec 2017 14:24:06 -0500 Subject: [PATCH 2/4] Using type=page for comments too --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5ade67e..0862274 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -22,7 +22,7 @@ {{ end }} - {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }} + {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (and .Site.Params.comments (ne .Params.type "page"))) }} {{ if .Site.DisqusShortname }}
{{ template "_internal/disqus.html" . }} From 2d2756aa1f53758997b51305c974b37aa2291992 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Thu, 7 Dec 2017 14:30:35 -0500 Subject: [PATCH 3/4] Use auto type discovery (can be overridden) --- layouts/_default/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0862274..186fce2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,7 +6,7 @@ {{ .Content }} - {{ if ne .Params.type "page" }} + {{ if ne .Params.Type "page" }}
    {{ if .PrevInSection }}