1
Fork 0

Add tags to meta JSON files

This commit is contained in:
Jake Howard 2017-09-17 11:09:45 +01:00
parent 899435f70c
commit 98409f609e
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 7 additions and 5 deletions

View file

@ -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 }}
}

View file

@ -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 }}
}