Permalink
Browse files

Fix OpenGraph image fallback to site params

Signed-off-by: Elliot Murphy <statik@users.noreply.github.com>
  • Loading branch information...
statik authored and bep committed Jan 25, 2019
1 parent 26f75ed commit 526b5b1c4986d43d6184671b02f45ca40f041b65
Showing with 2 additions and 2 deletions.
  1. +1 −1 tpl/tplimpl/embedded/templates.autogen.go
  2. +1 −1 tpl/tplimpl/embedded/templates/opengraph.html

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -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 }}

0 comments on commit 526b5b1

Please sign in to comment.