From 66d50f773ba6b7dbbfc6880da442c69936097eff Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 23 Apr 2023 22:07:27 +0900 Subject: [PATCH] Some layout tweaks for the term template Allow removing the pages list if the "pages" page variable is set false. --- layouts/_default/term.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 908d208..92d3069 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -12,20 +12,20 @@ {{- $hasContent := false -}} {{ with .Content }} {{- $hasContent = true -}} -
{{ . }} -
{{ end }} -{{ if $hasContent }} -

Posts

-{{ end }} +{{ if .Params.posts | default true }} + {{ if and $hasContent }} +

Posts

+ {{ end }} - + + {{ end }} {{ end }} {{ define "footer" }}