From 2b3baf94bb58e29bf5e2db33a824c3ad5c38837b Mon Sep 17 00:00:00 2001 From: Florian Kohrt Date: Sun, 17 Jan 2021 07:55:35 +0100 Subject: [PATCH] Make some page settings also configurable site wide (#182) Adds **local** and **global** param to following front-matter vars: - hideMeta - ShowToc - TocOpen - comments Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- layouts/_default/search.html | 2 +- layouts/_default/single.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/_default/search.html b/layouts/_default/search.html index 2105c298..09894327 100644 --- a/layouts/_default/search.html +++ b/layouts/_default/search.html @@ -8,7 +8,7 @@ - {{- if .Params.hideMeta }}{{ else }} + {{- if not (.Param "hideMeta") }}
{{- if .IsTranslated -}}