mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
add Description and Summary in JSON schema as in other templates
This commit is contained in:
parent
abfdb54c92
commit
0ca760a9b3
@ -62,7 +62,7 @@
|
|||||||
"@type": "BlogPosting",
|
"@type": "BlogPosting",
|
||||||
"headline": {{ .Title | plainify}},
|
"headline": {{ .Title | plainify}},
|
||||||
"name": "{{ .Title | plainify }}",
|
"name": "{{ .Title | plainify }}",
|
||||||
"description": {{ .Summary | plainify | truncate 180 | safeHTML }},
|
"description": {{ with .Description | plainify }}{{ . }}{{ else }}{{ .Summary | plainify }}{{ end -}},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
{{- if .Params.keywords }}
|
{{- if .Params.keywords }}
|
||||||
{{ range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
|
{{ range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user