From 274688f2382bcfecb66b46bdef6175650bea5262 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 20 Aug 2020 22:28:54 +0530 Subject: [PATCH] layouts/single : add option to disable Post-meta i.e. date, author-info can be used for posts which are just info, and not a 'post' set `hideMeta = true` in Page Variables (https://gohugo.io/variables/page/#page-variables) --- layouts/_default/single.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fbc395f..c0a0059 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,11 +6,13 @@ {{ .Title }} {{- if .Draft }}
  [draft]
{{- end }} + {{ if .Params.hideMeta }}{{ else }}
{{- if or .Params.author .Site.Params.author }} {{- .Params.author | default .Site.Params.author }} ยท {{ end }} {{- .Date.Format "January 2, 2006" -}}
+ {{end}} {{ if .Params.ShowToc }}