add Description and Summary in JSON schema as in other templates

This commit is contained in:
Aditya Telange 2021-03-23 15:10:40 +05:30
parent abfdb54c92
commit 0ca760a9b3
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -62,7 +62,7 @@
"@type": "BlogPosting",
"headline": {{ .Title | plainify}},
"name": "{{ .Title | plainify }}",
"description": {{ .Summary | plainify | truncate 180 | safeHTML }},
"description": {{ with .Description | plainify }}{{ . }}{{ else }}{{ .Summary | plainify }}{{ end -}},
"keywords": [
{{- if .Params.keywords }}
{{ range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}