From 201d269a1fd3283f806b3b44fdb98035f08063ec Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Tue, 25 Aug 2020 17:17:24 +0530
Subject: [PATCH] indexProfile : partial
---
layouts/_default/index.html | 16 +---------------
layouts/partials/indexProfile.html | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 15 deletions(-)
create mode 100644 layouts/partials/indexProfile.html
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 }}
-
-
- {{if .Site.Params.profileMode.imageUrl}}
-
-
-
- {{end}}
-
{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}}
- {{- with .Site.Params.profileMode.socialIcons }}
-
- {{ partial "social-icons.html" . }}
-
- {{- 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 0000000..0a36866
--- /dev/null
+++ b/layouts/partials/indexProfile.html
@@ -0,0 +1,16 @@
+
+
+ {{if .Site.Params.profileMode.imageUrl}}
+
+
+
+ {{end}}
+
{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}}
+
+ {{- with .Site.Params.profileMode.socialIcons }}
+
+ {{ partial "social-icons.html" . }}
+
+ {{- end }}
+
+
\ No newline at end of file