From f852d0692318f4f35c98943c3b00ba8d43119e68 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Mon, 24 Aug 2020 16:58:47 +0530 Subject: [PATCH] profile-mode : include social icons usage : in config params: profileMode: socialIcons: - name: "" url: : "" --- assets/css/profileMode.css | 10 ++++++++++ layouts/_default/index.html | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/assets/css/profileMode.css b/assets/css/profileMode.css index 04cf698..78029e8 100644 --- a/assets/css/profileMode.css +++ b/assets/css/profileMode.css @@ -27,3 +27,13 @@ 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/_default/index.html b/layouts/_default/index.html index 2a1c64f..33fcbdf 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -9,6 +9,11 @@ {{end}}

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

+ {{- with .Site.Params.profileMode.socialIcons }} +
+ {{ partial "social-icons.html" . }} +
+ {{- end }} {{else}} {{/* if not profileMode */}}