Check whether "series" is set in taxonomies
https://github.com/rhazdon/hugo-theme-hello-friend-ng/issues/132
This commit is contained in:
parent
05fbd8aefd
commit
7e7d41a648
1 changed files with 7 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
|
<meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
|
||||||
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ .Description | default ( .Summary | plainify ) }}{{ end }}" />
|
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
|
||||||
<meta name="keywords" content="{{ .Site.Params.keywords }}{{ if .Params.tags }}{{ range .Params.tags }}, {{ . }}{{ end }}{{ end }}" />
|
<meta name="keywords" content="{{ .Site.Params.keywords }}{{ if .Params.tags }}{{ range .Params.tags }}, {{ . }}{{ end }}{{ end }}" />
|
||||||
<meta name="robots" content="noodp" />
|
<meta name="robots" content="noodp" />
|
||||||
<meta name="theme-color" content="{{ .Site.Params.themeColor }}" />
|
<meta name="theme-color" content="{{ .Site.Params.themeColor }}" />
|
||||||
|
@ -35,9 +35,12 @@
|
||||||
<!-- Icons -->
|
<!-- Icons -->
|
||||||
{{- partial "favicons.html" . }}
|
{{- partial "favicons.html" . }}
|
||||||
|
|
||||||
{{- template "_internal/schema.html" . }}
|
{{ template "_internal/schema.html" . }}
|
||||||
{{- template "_internal/opengraph.html" . }}
|
{{ template "_internal/twitter_cards.html" . }}
|
||||||
{{- template "_internal/twitter_cards.html" . }}
|
|
||||||
|
{{ if isset .Site.Taxonomies "series" }}
|
||||||
|
{{ template "_internal/opengraph.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Params.categories }}
|
{{ range .Params.categories }}
|
||||||
<meta property="article:section" content="{{ . }}" />
|
<meta property="article:section" content="{{ . }}" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue