diff options
author | dataCobra <datacobra@thinkbot.de> | 2021-07-20 20:12:47 +0300 |
---|---|---|
committer | dataCobra <datacobra@thinkbot.de> | 2021-07-20 20:12:47 +0300 |
commit | 995df5b5988b7ea0a6a6b6188cfb67ec4a12d101 (patch) | |
tree | 3aa744fcaba4a9a6f933e710c0e1e87fb1357d49 | |
parent | fb31c85df34ecdd6f69f78c55dc320f710f2b2f0 (diff) |
Fix hidemeta in list.html and index.html
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3034fbb..78ae272 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -20,9 +20,11 @@ <div class="matter"> <article> <h3 class="title small"><a href="{{ .RelPermalink }}">{{.Title}}{{ if .Draft }}<sup class="draft-label">DRAFT</sup>{{ end }}</a></h3> +{{- if not .Params.hidemeta }} <p class="post-meta"> {{ partial "post_meta.html" . }} </p> +{{- end }} <span class="description">{{ if isset .Params "description" }}{{ .Description }}{{ else }}{{ .Plain | htmlUnescape | safeHTML | truncate 140 }}{{ end }}</span> </article> </div> diff --git a/layouts/index.html b/layouts/index.html index 02db8e5..cb1ee48 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -21,6 +21,11 @@ <article> <div class="matter"> <h1 class="title">{{ .Title }}</h1> +{{- if not .Params.hidemeta }} +<p class="post-meta"> +{{ partial "post_meta.html" . }} +</p> +{{- end }} </div> </div> <div class="markdown"> @@ -60,9 +65,11 @@ <div class="matter"> <article> <h3 class="title small"><a href="{{ .RelPermalink }}">{{.Title}}{{ if .Draft }}<sup class="draft-label">DRAFT</sup>{{ end }}</a></h3> +{{- if not .Params.hidemeta }} <p class="post-meta"> {{ partial "post_meta.html" . }} </p> +{{- end }} <span class="description">{{ if isset .Params "description" }}{{ .Description }}{{ else }}{{ .Plain | htmlUnescape | safeHTML | truncate 140 }}{{ end }}</span> </article> </div> |