aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/index.json
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-08-04 16:16:53 -0400
committertdro <tdro@noreply.example.com>2023-08-07 20:51:07 -0400
commit81235874cb868df18e5f55ec6f6619ce8f0ff331 (patch)
treebce2290f5c37bce8c8c7709dfed67e1493265097 /themes/default/layouts/_default/index.json
parent66eff2ad032b7731fecbf1863dcb691e9eabb4ba (diff)
downloadcanory-81235874cb868df18e5f55ec6f6619ce8f0ff331.tar.gz
canory-81235874cb868df18e5f55ec6f6619ce8f0ff331.tar.bz2
canory-81235874cb868df18e5f55ec6f6619ce8f0ff331.zip
themes/default/layouts/_default/index.json: Title and summary needs jsonification
Diffstat (limited to 'themes/default/layouts/_default/index.json')
-rw-r--r--themes/default/layouts/_default/index.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/_default/index.json b/themes/default/layouts/_default/index.json
index b9d9068..9484e60 100644
--- a/themes/default/layouts/_default/index.json
+++ b/themes/default/layouts/_default/index.json
@@ -15,8 +15,8 @@
{
"id": "{{ sha256 $data.Permalink }}",
"url": "{{ $data.Permalink }}",
- "title": "{{ $data.Summary | htmlUnescape }}",
- "summary": "{{ $data.Summary | htmlUnescape }}",
+ "title": {{ $data.Summary | htmlUnescape | jsonify }},
+ "summary": {{ $data.Summary | htmlUnescape | jsonify }},
"date_modified": "{{ $data.Date | time.Format "2006-01-02T15:04:05Z" }}",
"date_published": "{{ $data.PublishDate | time.Format "2006-01-02T15:04:05Z" }}",
"_metadata": {