summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/index.html16
-rw-r--r--layouts/partials/indexProfile.html16
2 files changed, 17 insertions, 15 deletions
diff --git a/layouts/_default/index.html b/layouts/_default/index.html
index 7376ab1..453bf4e 100644
--- a/layouts/_default/index.html
+++ b/layouts/_default/index.html
@@ -1,21 +1,7 @@
{{ 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>
- {{- with .Site.Params.profileMode.socialIcons }}
- <div class="social-icons">
- {{ partial "social-icons.html" . }}
- </div>
- {{- end }}
- </div>
-</div>
+{{- 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 0000000..0a36866
--- /dev/null
+++ b/layouts/partials/indexProfile.html
@@ -0,0 +1,16 @@
+<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>
+ {{- with .Site.Params.profileMode.socialIcons }}
+ <div class="social-icons">
+ {{ partial "social-icons.html" . }}
+ </div>
+ {{- end }}
+ </div>
+</div> \ No newline at end of file