From 6dcd4371464b37024e3f4292ae6f7502b725c71c Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 2 Oct 2020 13:46:49 +0530 Subject: [PATCH] social-icons: refactor * use easier impl --- layouts/partials/home_info.html | 6 +----- layouts/partials/index_profile.html | 10 ++++------ layouts/partials/social_icons.html | 10 ++++++---- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/layouts/partials/home_info.html b/layouts/partials/home_info.html index 6f180e8..7feb43a 100644 --- a/layouts/partials/home_info.html +++ b/layouts/partials/home_info.html @@ -7,11 +7,7 @@

{{- .Content | markdownify }}

{{- end}} \ No newline at end of file diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 56e2f47..37db61f 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -2,12 +2,10 @@ {{- with .Site.Params.profileMode }}
{{- if .imageUrl}}{{ .imageTitle | default {{- end}} -

{{ .title | default $.Site.Title }}

- {{- with $.Site.Params.socialIcons }} -
- {{ partial "social_icons.html" . }} -
- {{- end }} +

{{- .title | default $.Site.Title -}}

+ + {{- partial "social_icons.html" $.Site.Params.socialIcons -}} + {{- with .buttons }}
{{- range . -}} diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html index d48b1e2..1a5d6d2 100644 --- a/layouts/partials/social_icons.html +++ b/layouts/partials/social_icons.html @@ -1,4 +1,6 @@ -{{- range . -}} -{{ partial "svg.html" . }} -{{- end -}} \ No newline at end of file + \ No newline at end of file