Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/g1eny0ung/hugo-theme-dream.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/socials.html')
-rw-r--r--layouts/partials/socials.html9
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>