Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dataCobra/hugo-vitae.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordataCobra <datacobra@thinkbot.de>2021-07-20 20:12:47 +0300
committerdataCobra <datacobra@thinkbot.de>2021-07-20 20:12:47 +0300
commit995df5b5988b7ea0a6a6b6188cfb67ec4a12d101 (patch)
tree3aa744fcaba4a9a6f933e710c0e1e87fb1357d49
parentfb31c85df34ecdd6f69f78c55dc320f710f2b2f0 (diff)
Fix hidemeta in list.html and index.html
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/index.html7
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>