diff options
author | Thedro Neely <thedroneely@gmail.com> | 2024-01-06 19:16:12 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2024-01-06 19:16:12 -0500 |
commit | 3c1a341d42994efd4addb942c623bff18b2d034c (patch) | |
tree | e57b5f2fa971cb499650a152dfea5c9f43deecaa | |
parent | eaaaeb78e5d79a4696fe9624c4d6873756d5edc4 (diff) | |
download | thedroneely.com-3c1a341d42994efd4addb942c623bff18b2d034c.tar.gz thedroneely.com-3c1a341d42994efd4addb942c623bff18b2d034c.tar.bz2 thedroneely.com-3c1a341d42994efd4addb942c623bff18b2d034c.zip |
generators/hugo/layouts/_default/index.json: Summary and title jsonify
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/index.json | 4 |
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": { |