From dbaa709c971b71cc9b90f2dbeecb7ddd301b84b4 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 27 Aug 2020 20:03:00 +0530 Subject: [PATCH] homeInfo : add socialIcons at bottom * can be disabled by not having Params.socialIcons as variable * profileMode overrides homeInfo mode --- assets/css/post-entry.css | 6 ++++++ assets/css/profileMode.css | 6 ------ layouts/partials/homeInfo.html | 5 +++++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/assets/css/post-entry.css b/assets/css/post-entry.css index 782f4c47..f7c5c563 100644 --- a/assets/css/post-entry.css +++ b/assets/css/post-entry.css @@ -88,4 +88,10 @@ display: inline; color: var(--secondary); font-size: 14px; +} + +.social-icons a { + margin: 2px; + padding: 6px; + font-size: 1.4em; } \ No newline at end of file diff --git a/assets/css/profileMode.css b/assets/css/profileMode.css index 78029e89..c3a95bce 100644 --- a/assets/css/profileMode.css +++ b/assets/css/profileMode.css @@ -31,9 +31,3 @@ img { .social-icons { padding: 16px; } - -.social-icons a { - margin: 2px; - padding: 6px; - font-size: 1.4em; -} \ No newline at end of file diff --git a/layouts/partials/homeInfo.html b/layouts/partials/homeInfo.html index da8fc82a..0286aebe 100644 --- a/layouts/partials/homeInfo.html +++ b/layouts/partials/homeInfo.html @@ -6,5 +6,10 @@

{{ .Content | plainify | htmlUnescape }}

+ {{- with $.Site.Params.socialIcons }} +
+ {{ partial "social-icons.html" . }} +
+ {{- end }} {{end}} \ No newline at end of file