Put metadata tags into partial
And update example config.toml (relate to #40)
This commit is contained in:
parent
23e22be1eb
commit
6da23e4e20
3 changed files with 10 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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 -}}
|
||||
|
|
6
layouts/partials/structured-data.html
Normal file
6
layouts/partials/structured-data.html
Normal 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" . }}
|
Loading…
Reference in a new issue