From 6be9da45ab606f508023a5b43d39a9afcaa8c803 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 23 Aug 2020 18:19:41 +0530 Subject: profileMode : init usaage, in config add params: profileMode: title: "PaperMod" // or default will be site.title imageUrl: "" --- layouts/_default/index.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'layouts/_default/index.html') diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 8909051..2a1c64f 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -1,4 +1,18 @@ {{ define "main" }} + +{{ if .Site.Params.profileMode }} +
+
+ {{if .Site.Params.profileMode.imageUrl}} +
+ {{ .Site.Params.profileMode.imageTitle}} +
+ {{end}} +

{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}}

+
+
+{{else}} {{/* if not profileMode */}} + {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} @@ -52,5 +66,5 @@ {{- end }} - +{{end}}{{/* end profileMode */}} {{ end }}{{/* end main */}} \ No newline at end of file -- cgit v1.2.3