summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-08-23 18:19:41 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-08-23 18:19:41 +0530
commit6be9da45ab606f508023a5b43d39a9afcaa8c803 (patch)
tree6b494e8bc93c40a6d3780387e49fc75575bac090 /layouts/_default
parent8af56e302db940012e25a8d9279da41c1d6718c0 (diff)
profileMode : init
usaage, in config add params: profileMode: title: "PaperMod" // or default will be site.title imageUrl: "<image_link>"
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/index.html16
1 files changed, 15 insertions, 1 deletions
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 }}
+<div class="profile">
+ <div class="profile_inner">
+ {{if .Site.Params.profileMode.imageUrl}}
+ <div>
+ <img src="{{ .Site.Params.profileMode.imageUrl}}" alt="{{ .Site.Params.profileMode.imageTitle}}" />
+ </div>
+ {{end}}
+ <h1>{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}}</h1>
+ </div>
+</div>
+{{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 @@
</nav>
</footer>
{{- end }}
-
+{{end}}{{/* end profileMode */}}
{{ end }}{{/* end main */}} \ No newline at end of file