From 2ed69e67b88924f44b43dce9dbfe8b39246ef8f0 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sun, 21 Nov 2021 13:49:30 -0600 Subject: [PATCH] Fixed broken section/page hide feature --- layouts/partials/postlist.html | 3 ++- layouts/partials/sectionlist.html | 13 ------------- layouts/post/list.html | 22 ---------------------- 3 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 layouts/partials/sectionlist.html delete mode 100644 layouts/post/list.html diff --git a/layouts/partials/postlist.html b/layouts/partials/postlist.html index 714ea05..c668a50 100644 --- a/layouts/partials/postlist.html +++ b/layouts/partials/postlist.html @@ -1,5 +1,6 @@ {{ range .Pages }} - {{ if not (isset .Params "hide") }} + {{ with .Params.hide }} + {{ else }}

{{ .Title | markdownify }}

diff --git a/layouts/partials/sectionlist.html b/layouts/partials/sectionlist.html deleted file mode 100644 index 090e6d5..0000000 --- a/layouts/partials/sectionlist.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ range .Sections }} - {{ if not (isset .Params "hide") }} - - {{ end }} -{{ end }} diff --git a/layouts/post/list.html b/layouts/post/list.html deleted file mode 100644 index 027e282..0000000 --- a/layouts/post/list.html +++ /dev/null @@ -1,22 +0,0 @@ -{{ define "main" }} -
-

{{ .Title | markdownify }}

- {{ .Content }} -
- - {{ range .Pages }} - - {{ end }} -{{ end }}