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 }}", "url": "{{ .Permalink }}",
"link": "{{ .RelPermalink }}", "link": "{{ .RelPermalink }}",
"link_title": "{{ .LinkTitle }}" "link_title": "{{ .LinkTitle }}"
"parent": "{{ if .Parent }}{{ lower .Parent.Title }}{{ end }}" "parent": "{{ if .Parent }}{{ lower .Parent.Title }}{{ end }}",
"tags": {{ jsonify .Params.tags }}
} }
{{ end }} {{ end }}
} }

View file

@ -4,8 +4,9 @@
"date_published": "{{ .Date }}", "date_published": "{{ .Date }}",
"image": "{{ absURL .Params.image }}", "image": "{{ absURL .Params.image }}",
"url": "{{ .Permalink }}", "url": "{{ .Permalink }}",
"content_html": {{ .Content | jsonify }}, "content_html": {{ jsonify .Content }},
"content_text": {{ .RawContent | jsonify }}, "content_text": {{ jsonify .RawContent }},
"summary": {{ .Summary | jsonify }}, "summary": {{ jsonify .Summary }},
"banner_image": "{{ absURL .Params.image }}" "banner_image": "{{ absURL .Params.image }}",
"tags": {{ jsonify .Params.tags }}
} }