Added opengraph meta tags.

This commit is contained in:
Fredrik Jonsson 2018-03-02 11:14:55 +01:00
commit 3565ba1e72

View file

@ -6,7 +6,7 @@
"datePublished": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}",
"dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}",
"url" : "{{ .Permalink }}",
"description": {{ with (replaceRE "\n" " " (.Description | default .Summary)) }}{{ . | jsonify }}{{ end }},
"description": {{ with (.Description | default (replaceRE "\n" " " .Summary)) }}{{ . | jsonify }}{{ end }},
{{ with $.Param "image" -}}
"image" : "{{ . | absURL }}",
{{ end -}}