Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Fix escaping in RSS feed files
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonb927 committed Mar 12, 2024
1 parent ca354ac commit e6c1d43
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion brandonb.ca/_pages/f_feed.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sitemap: false
{
"version": "https://jsonfeed.org/version/1",
"title": "{{ site.title | normalize_whitespace }}",
"description": "{{ site.description | normalize_whitespace | replace: '<br />',' | ' }}",
"description": "{{ site.description | strip_html | normalize_whitespace }}",
"home_page_url": "{{ site.url }}",
"feed_url": "{{ '/feed.json' | absolute_url }}",
"icon": "{{ site.favicon.png | prepend: site.assets_media }}",
Expand Down
2 changes: 1 addition & 1 deletion brandonb.ca/_pages/f_feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sitemap: false
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<description>{{ site.description | strip_html | xml_escape }}</description>
<link>{{ '/' | absolute_url }}</link>
<atom:link href="{{ '/feed.xml' | absolute_url }}" rel="self" type="application/rss+xml" />
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
Expand Down
2 changes: 1 addition & 1 deletion brandonb.ca/_pages/feed.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sitemap: false
{
"version": "https://jsonfeed.org/version/1",
"title": "{{ site.title | normalize_whitespace }}",
"description": "{{ site.description | normalize_whitespace | replace: '<br />',' | ' }}",
"description": "{{ site.description | strip_html | normalize_whitespace }}",
"home_page_url": "{{ site.url }}",
"feed_url": "{{ '/feed.json' | absolute_url }}",
"icon": "{{ site.favicon.png | prepend: site.assets_media }}",
Expand Down
2 changes: 1 addition & 1 deletion brandonb.ca/_pages/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sitemap: false
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<description>{{ site.description | strip_html | xml_escape }}</description>
<link>{{ '/' | absolute_url }}</link>
<atom:link href="{{ '/feed.xml' | absolute_url }}" rel="self" type="application/rss+xml" />
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
Expand Down

0 comments on commit e6c1d43

Please sign in to comment.