Add social links to config
This commit is contained in:
parent
3b1e939020
commit
a98c11f5f7
@ -61,8 +61,12 @@ enableRobotsTXT = true
|
|||||||
# formatting, see https://gohugo.io/functions/format/
|
# formatting, see https://gohugo.io/functions/format/
|
||||||
dateFormat = "2006-01-02"
|
dateFormat = "2006-01-02"
|
||||||
|
|
||||||
# Your email, added to the navbar so readers can reply to your posts
|
# Social media. Delete any item you aren't using to make sure it won't show up
|
||||||
email = "me@example.com"
|
# in your website's metadata.
|
||||||
|
[social]
|
||||||
|
email = "me@example.com" # Added to the navbar so readers can reply to posts
|
||||||
|
twitter = "example" # Twitter handle (without '@')
|
||||||
|
facebook_admin = "0000000000" # Facebook Page Admin ID
|
||||||
|
|
||||||
# (EXPERIMENTAL) If your blog is multilingual but you haven't translated a
|
# (EXPERIMENTAL) If your blog is multilingual but you haven't translated a
|
||||||
# page, this theme will create a disabled link. By setting `hideUntranslated`
|
# page, this theme will create a disabled link. By setting `hideUntranslated`
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
{{ range .Site.Menus.main.ByWeight }}
|
{{ range .Site.Menus.main.ByWeight }}
|
||||||
<a href="{{ relLangURL .URL }}">{{ .Name }}</a>
|
<a href="{{ relLangURL .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ 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>
|
<a href="{{ .Site.Language.Params.params.blogPath }}/index.xml">RSS</a>
|
||||||
|
|
||||||
<!-- Convert this page's translations into a dict -->
|
<!-- Convert this page's translations into a dict -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user