From e42eca49be9ad9d39d39ba56a5c2dfebdbd7e40c Mon Sep 17 00:00:00 2001 From: BernatBC Date: Wed, 24 Jan 2024 10:50:12 +0100 Subject: [PATCH] Add param profile --- layouts/_default/single.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e999f71a2..754c60ca4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -36,15 +36,26 @@
+ {{ if .Params.profile | default true }}
Author Image
{{ partial "helpers/get-author-name.html" . }}

{{ .Page.Date | time.Format ":date_full" }}{{ if site.Params.features.readingTime }} | {{ .ReadingTime }} {{i18n "minute" .ReadingTime }}{{ end }}

- + {{ else }} +
+ {{ end }} +

{{ .Page.Title }}

+ + {{ if not .Params.profile | default true }} +
+

{{ .Page.Date | time.Format ":date_full" }}{{ if site.Params.features.readingTime }} | {{ .ReadingTime }} {{i18n "minute" .ReadingTime }}{{ end }}

+
+ {{ end }} + {{ if site.Params.features.tags.enable }} {{partial "misc/tags.html" .Params.tags }} {{ end }}