Add tags to meta JSON files
This commit is contained in:
parent
899435f70c
commit
98409f609e
2 changed files with 7 additions and 5 deletions
|
@ -8,7 +8,8 @@
|
|||
"url": "{{ .Permalink }}",
|
||||
"link": "{{ .RelPermalink }}",
|
||||
"link_title": "{{ .LinkTitle }}"
|
||||
"parent": "{{ if .Parent }}{{ lower .Parent.Title }}{{ end }}"
|
||||
"parent": "{{ if .Parent }}{{ lower .Parent.Title }}{{ end }}",
|
||||
"tags": {{ jsonify .Params.tags }}
|
||||
}
|
||||
{{ end }}
|
||||
}
|
||||
|
|
|
@ -4,8 +4,9 @@
|
|||
"date_published": "{{ .Date }}",
|
||||
"image": "{{ absURL .Params.image }}",
|
||||
"url": "{{ .Permalink }}",
|
||||
"content_html": {{ .Content | jsonify }},
|
||||
"content_text": {{ .RawContent | jsonify }},
|
||||
"summary": {{ .Summary | jsonify }},
|
||||
"banner_image": "{{ absURL .Params.image }}"
|
||||
"content_html": {{ jsonify .Content }},
|
||||
"content_text": {{ jsonify .RawContent }},
|
||||
"summary": {{ jsonify .Summary }},
|
||||
"banner_image": "{{ absURL .Params.image }}",
|
||||
"tags": {{ jsonify .Params.tags }}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue