diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 7376ab1b..453bf4ef 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -1,21 +1,7 @@ {{ 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}}

- {{- with .Site.Params.profileMode.socialIcons }} - - {{- end }} -
-
+{{- partial "indexProfile.html" . }} {{else}} {{/* if not profileMode */}} {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} diff --git a/layouts/partials/indexProfile.html b/layouts/partials/indexProfile.html new file mode 100644 index 00000000..0a368668 --- /dev/null +++ b/layouts/partials/indexProfile.html @@ -0,0 +1,16 @@ +
+
+ {{if .Site.Params.profileMode.imageUrl}} +
+ {{ .Site.Params.profileMode.imageTitle}} +
+ {{end}} +

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

+ {{- with .Site.Params.profileMode.socialIcons }} + + {{- end }} +
+
\ No newline at end of file