summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-03-23 15:10:40 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-03-23 15:10:40 +0530
commit0ca760a9b323c42f39285d2c410e75419b3e18a0 (patch)
treec9026dbc6ef51becc1feb6bc23edd57470ba738c
parentabfdb54c92a26dcfaf876d2e06c1059ec9254694 (diff)
add Description and Summary in JSON schema as in other templates
-rw-r--r--layouts/partials/templates/schema_json.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html
index df5170b..6e0a289 100644
--- a/layouts/partials/templates/schema_json.html
+++ b/layouts/partials/templates/schema_json.html
@@ -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 }}