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

github.com/aerohub/hugo-identity-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryutaszk <yutaszk23@gmail.com>2017-09-03 16:20:28 +0300
committeryutaszk <yutaszk23@gmail.com>2017-09-03 16:20:28 +0300
commitb70c2d84558806f8ea53bdbc57785b9b2dc01012 (patch)
tree5014b90675b71725775b6f6b1e70c702af871e36
parentf665b3702dec1715cd2e1d86767a1e2308cf5d15 (diff)
Add social link configuration to specify target element
-rw-r--r--exampleSite/config.toml5
-rw-r--r--layouts/index.html2
2 files changed, 5 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index d0a2ed4..cd4350d 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -108,16 +108,19 @@ Even new lines and other markdown styles are working within the bio."""
title = "Twitter"
icon = "fa-twitter"
link = "#"
+ target = "_blank"
[[params.social]]
title = "Instagram"
icon = "fa-instagram"
link = "#"
-
+ target = "_blank"
+
[[params.social]]
title = "Facebook"
icon = "fa-facebook"
link = "#"
+ target = "_blank"
# Footer settings
[params.footer]
diff --git a/layouts/index.html b/layouts/index.html
index 6007297..5eb3f86 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -55,7 +55,7 @@
<footer>
<ul class="icons">
{{ range .Site.Params.social }}
- <li><a href="{{ .link }}" class="{{ .icon }}">{{ .title }}</a></li>
+ <li><a href="{{ .link }}" class="{{ .icon }}" target="{{ .target | default "_self" }}">{{ .title }}</a></li>
{{ end }}
</ul>
{{ if .Site.Params.contact.enable }}