diff options
| author | Track3 <pengliabc@live.cn> | 2019-02-01 18:14:07 +0800 |
|---|---|---|
| committer | Track3 <pengliabc@live.cn> | 2019-02-01 18:14:07 +0800 |
| commit | 6da23e4e20105bc73af0602dd6a1becc18cbf206 (patch) | |
| tree | e6ad008f7be4bf490327ecbecde43c005ed8ffaf /layouts | |
| parent | 23e22be1eb4ffd261e9cfdf1f9ed9c54118917cb (diff) | |
Put metadata tags into partial
And update example config.toml (relate to #40)
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
| -rw-r--r-- | layouts/partials/structured-data.html | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 18941b2..b495afe 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -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 -}} diff --git a/layouts/partials/structured-data.html b/layouts/partials/structured-data.html new file mode 100644 index 0000000..4bfb909 --- /dev/null +++ b/layouts/partials/structured-data.html @@ -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" . }} |
