aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorC. Lente <7017340+clente@users.noreply.github.com>2023-03-04 14:39:39 -0300
committerC. Lente <7017340+clente@users.noreply.github.com>2023-03-04 14:39:39 -0300
commita98c11f5f75c3e1f0b85e74521d088c7dd3a9958 (patch)
tree69fc10c744ef1389e3796636f4756d66698e3e86 /layouts
parent3b1e9390206f22da0a0f7d94d4e585ff61944550 (diff)
downloadhugo-bearcub-a98c11f5f75c3e1f0b85e74521d088c7dd3a9958.tar.gz
hugo-bearcub-a98c11f5f75c3e1f0b85e74521d088c7dd3a9958.tar.bz2
Add social links to config
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/nav.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 9a6b352..3f1a416 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,7 +1,9 @@
{{ range .Site.Menus.main.ByWeight }}
<a href="{{ relLangURL .URL }}">{{ .Name }}</a>
{{ end }}
-<a href='mailto:{{ .Site.Params.email }}?subject={{ i18n "email-subject" }}"{{ default .Site.Title .Page.Title }}"'>Email</a>
+{{ with .Site.Social.email }}
+<a href='mailto:{{ . }}?subject={{ i18n "email-subject" }}"{{ default $.Site.Title $.Page.Title }}"'>Email</a>
+{{ end }}
<a href="{{ .Site.Language.Params.params.blogPath }}/index.xml">RSS</a>
<!-- Convert this page's translations into a dict -->