diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index 36fc91e..7bddaa1 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -7,22 +7,24 @@ {{- if .IsHome }} -{{ $text = .Site.Params.Description }} + {{ $text = .Site.Params.Description }} {{- end }} {{- if .IsPage }} -{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} - -{{ with .PublishDate }}{{ end }} -{{ with .Lastmod }}{{ end }} -{{ $text = .Page.Title }} + {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} + + {{ with .PublishDate }}{{ end }} + {{ with .Lastmod }}{{ end }} + {{ $text = .Page.Title }} {{ end }} {{- with .Params.thumbnail }} -{{ $thumbnail := $.Resources.Get . }} -{{ with $thumbnail }} -{{ $img = $img.Filter (images.Overlay (.Process "fit 300x250") 875 38 )}} -{{ end }}{{ end }} + {{ $thumbnail := $.Resources.Get . }} + {{ with $thumbnail }} + {{ $img = $img.Filter (images.Overlay (.Process "fit 300x250") 875 38 )}} + {{ end }} +{{ end }} + {{ $img = $img.Filter (images.Text $text (dict "color" "#d8d8d8" "size" 64