diff options
author | C. Lente <7017340+clente@users.noreply.github.com> | 2023-03-04 14:39:39 -0300 |
---|---|---|
committer | C. Lente <7017340+clente@users.noreply.github.com> | 2023-03-04 14:39:39 -0300 |
commit | a98c11f5f75c3e1f0b85e74521d088c7dd3a9958 (patch) | |
tree | 69fc10c744ef1389e3796636f4756d66698e3e86 /layouts/partials | |
parent | 3b1e9390206f22da0a0f7d94d4e585ff61944550 (diff) | |
download | hugo-bearcub-a98c11f5f75c3e1f0b85e74521d088c7dd3a9958.tar.gz hugo-bearcub-a98c11f5f75c3e1f0b85e74521d088c7dd3a9958.tar.bz2 |
Add social links to config
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/nav.html | 4 |
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 --> |