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 }}",
|
"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 }}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 }}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue