Put metadata tags into partial

And update example config.toml (relate to #40)
This commit is contained in:
Track3 2019-02-01 18:14:07 +08:00
parent 23e22be1eb
commit 6da23e4e20
3 changed files with 10 additions and 4 deletions

View file

@ -17,7 +17,9 @@ enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/func
name = "John Doe"
[blackfriday]
hrefTargetBlank = true
# hrefTargetBlank = true
# noreferrerLinks = true
# nofollowLinks = true
[taxonomies]
tag = "tags"

View file

@ -9,9 +9,7 @@
<meta name="theme-color" content="{{.}}">
<meta name="msapplication-TileColor" content="{{.}}">
{{- end }}
{{- template "_internal/schema.html" . }}
{{- template "_internal/opengraph.html" . }}
{{- template "_internal/twitter_cards.html" . }}
{{- partial "structured-data.html" . }}
{{- partial "favicons.html" }}
<title>{{.Title}}</title>
{{ range .AlternativeOutputFormats -}}

View file

@ -0,0 +1,6 @@
{{/* We use some Hugo built-in templates, you can find their source here: */}}
{{/* https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}}
{{- template "_internal/schema.html" . }}
{{- template "_internal/opengraph.html" . }}
{{- template "_internal/twitter_cards.html" . }}