Added opengraph meta tags.

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

View file

@ -4,7 +4,9 @@
"@type": "WebSite",
"url" : "{{ .Permalink }}",
"name": {{ .Title | jsonify }},
"description": {{ $.Param "description" | jsonify }},
{{ with $.Param "description" -}}
"description": {{ . | jsonify }},
{{ end -}}
{{ with $.Param "image" -}}
"image" : "{{ . | absURL }}",
{{ end -}}