diff options
Diffstat (limited to 'layouts/partials/socials.html')
-rw-r--r-- | layouts/partials/socials.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/partials/socials.html b/layouts/partials/socials.html index 2c73636..948b0ac 100644 --- a/layouts/partials/socials.html +++ b/layouts/partials/socials.html @@ -58,4 +58,13 @@ <i class="{{ .IconSize }} codepen icon" title="Codepen"></i> </a> {{ end }} + + {{ if (fileExists "data/socials.toml") }} + {{ $iconSize := .IconSize }} + {{ range .Site.Data.socials.socials }} + <a class="item" href="{{ .href }}" target="{{ .target }}"> + <i class="{{ $iconSize }} {{ .icon }} icon" title="{{ .title }}"></i> + </a> + {{ end }} + {{ end }} </nav> |