diff options
| author | tdro <tdro@noreply.example.com> | 2025-01-15 00:00:00 +0000 |
|---|---|---|
| committer | tdro <tdro@noreply.example.com> | 2025-01-15 00:00:00 +0000 |
| commit | 31fc9595c31e81e14e6fc4be77295ae84996b3e7 (patch) | |
| tree | 101213b874e5c6a6ed767127de75c18b8773ffa8 | |
| parent | 01e71f2a94f3a56e18b035dfd46ca6da13d4ad4e (diff) | |
| download | canory-31fc9595c31e81e14e6fc4be77295ae84996b3e7.tar.gz canory-31fc9595c31e81e14e6fc4be77295ae84996b3e7.tar.bz2 canory-31fc9595c31e81e14e6fc4be77295ae84996b3e7.zip | |
themes/default/layouts/_default/index.json: Explicit plainify
| -rw-r--r-- | themes/default/layouts/_default/index.json | 4 | ||||
| -rw-r--r-- | themes/default/layouts/_default/rss.xml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/layouts/_default/index.json b/themes/default/layouts/_default/index.json index 9484e60..ac36eb1 100644 --- a/themes/default/layouts/_default/index.json +++ b/themes/default/layouts/_default/index.json @@ -15,7 +15,7 @@ { "id": "{{ sha256 $data.Permalink }}", "url": "{{ $data.Permalink }}", - "title": {{ $data.Summary | htmlUnescape | jsonify }}, + "title": {{ $data.Summary | plainify | 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" }}", @@ -36,7 +36,7 @@ " {{- end -}} ], - "content_text": {{ $data.Plain | jsonify }}, + "content_text": {{ $data.Summary | plainify | htmlUnescape | jsonify }}, "content_html": {{ partial "function-content.html" $data | jsonify }} } {{- end }} diff --git a/themes/default/layouts/_default/rss.xml b/themes/default/layouts/_default/rss.xml index 8910f65..1239c30 100644 --- a/themes/default/layouts/_default/rss.xml +++ b/themes/default/layouts/_default/rss.xml @@ -92,7 +92,7 @@ {{- end -}} <item> - <title>{{ (or .Summary .Title) | htmlUnescape }}</title> + <title>{{ (or .Summary .Title) | plainify | htmlUnescape }}</title> <link>{{ or .Params.Feed.link .Permalink }}</link> <pubDate>{{ .Date | time.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <guid>{{ .Permalink }}</guid> |
