mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Fix OpenGraph image fallback to site params
Signed-off-by: Elliot Murphy <statik@users.noreply.github.com>
This commit is contained in:
parent
26f75edb7a
commit
526b5b1c49
2 changed files with 2 additions and 2 deletions
2
tpl/tplimpl/embedded/templates.autogen.go
generated
2
tpl/tplimpl/embedded/templates.autogen.go
generated
|
@ -175,7 +175,7 @@ if (!doNotTrack) {
|
|||
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
|
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
{{- with .Params.images }}{{ range first 6 . }}
|
||||
{{ with $.Param "images" }}{{ range first 6 . }}
|
||||
<meta property="og:image" content="{{ . | absURL }}" />
|
||||
{{ end }}{{ end }}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
|
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
{{- with .Params.images }}{{ range first 6 . }}
|
||||
{{ with $.Param "images" }}{{ range first 6 . }}
|
||||
<meta property="og:image" content="{{ . | absURL }}" />
|
||||
{{ end }}{{ end }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue