diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-08-24 16:58:47 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-08-24 16:58:47 +0530 |
| commit | f852d0692318f4f35c98943c3b00ba8d43119e68 (patch) | |
| tree | 43f058f1299132eb9c807d63f8ff56541940e308 | |
| parent | 6683b858769721483230761f8d32ed460f4c0d2c (diff) | |
profile-mode : include social icons
usage : in config
params:
profileMode:
socialIcons:
- name: "<platform>"
url: : "<link>"
| -rw-r--r-- | assets/css/profileMode.css | 10 | ||||
| -rw-r--r-- | layouts/_default/index.html | 5 |
2 files changed, 15 insertions, 0 deletions
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 @@ </div> {{end}} <h1>{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}}</h1> + {{- with .Site.Params.profileMode.socialIcons }} + <div class="social-icons"> + {{ partial "social-icons.html" . }} + </div> + {{- end }} </div> </div> {{else}} {{/* if not profileMode */}} |
