diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-08-27 20:03:00 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-08-27 20:03:00 +0530 |
| commit | dbaa709c971b71cc9b90f2dbeecb7ddd301b84b4 (patch) | |
| tree | 934e4679753674f8c56cc7fc3bd41c2d02e52ea6 | |
| parent | faf0ebefa3d6722c059df42a175906a869e18c0f (diff) | |
homeInfo : add socialIcons at bottom
* can be disabled by not having Params.socialIcons as variable
* profileMode overrides homeInfo mode
| -rw-r--r-- | assets/css/post-entry.css | 6 | ||||
| -rw-r--r-- | assets/css/profileMode.css | 6 | ||||
| -rw-r--r-- | 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 782f4c4..f7c5c56 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 78029e8..c3a95bc 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 da8fc82..0286aeb 100644 --- a/layouts/partials/homeInfo.html +++ b/layouts/partials/homeInfo.html @@ -6,5 +6,10 @@ <section class="entry-content"> <p>{{ .Content | plainify | htmlUnescape }}</p> </section> + {{- with $.Site.Params.socialIcons }} + <div class="social-icons"> + {{ partial "social-icons.html" . }} + </div> + {{- end }} </article> {{end}}
\ No newline at end of file |
