diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-03-23 15:10:40 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-03-23 15:10:40 +0530 |
| commit | 0ca760a9b323c42f39285d2c410e75419b3e18a0 (patch) | |
| tree | c9026dbc6ef51becc1feb6bc23edd57470ba738c | |
| parent | abfdb54c92a26dcfaf876d2e06c1059ec9254694 (diff) | |
add Description and Summary in JSON schema as in other templates
| -rw-r--r-- | layouts/partials/templates/schema_json.html | 2 |
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 }} |
