aboutsummaryrefslogtreecommitdiff
path: root/generators
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2024-01-06 19:16:12 -0500
committerThedro Neely <thedroneely@gmail.com>2024-01-06 19:16:12 -0500
commit3c1a341d42994efd4addb942c623bff18b2d034c (patch)
treee57b5f2fa971cb499650a152dfea5c9f43deecaa /generators
parenteaaaeb78e5d79a4696fe9624c4d6873756d5edc4 (diff)
downloadthedroneely.com-3c1a341d42994efd4addb942c623bff18b2d034c.tar.gz
thedroneely.com-3c1a341d42994efd4addb942c623bff18b2d034c.tar.bz2
thedroneely.com-3c1a341d42994efd4addb942c623bff18b2d034c.zip
generators/hugo/layouts/_default/index.json: Summary and title jsonify
Diffstat (limited to 'generators')
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/index.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/index.json b/generators/hugo/themes/tdro/layouts/_default/index.json
index 92801bf..0969cd6 100644
--- a/generators/hugo/themes/tdro/layouts/_default/index.json
+++ b/generators/hugo/themes/tdro/layouts/_default/index.json
@@ -10,8 +10,8 @@
{
"id": "{{ md5 $data.Permalink }}",
"url": "{{ $data.Permalink }}",
- "title": "{{ $data.Title | 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": {