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

Commit

Permalink
fix(shows): set content to xml for rss feed (#5873)
Browse files Browse the repository at this point in the history
* fix(shows): set content to xml for rss feed

* refactor(feed): update all feed content to use `mode="escaped"`
  • Loading branch information
MichaelSolati authored Jul 23, 2021
1 parent a55db0b commit 4a7c0e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/site/_includes/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | replace("web-copy-code", "div") | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
<content type="text/html" mode="escaped">{{ post.templateContent | replace("web-copy-code", "div") | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
{% for entry in post.data.authors %}
{%- set author = collections.authors[entry] -%}
<author>
Expand Down
2 changes: 1 addition & 1 deletion src/site/content/en/authors/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pagination:
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | replace("web-copy-code", "div") | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
<content type="text/html" mode="escaped">{{ post.templateContent | replace("web-copy-code", "div") | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
{% for entry in post.data.authors %}
{%- set author = collections.authors[entry] -%}
<author>
Expand Down
2 changes: 1 addition & 1 deletion src/site/content/en/shows/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pagination:
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.data.description | md({linkify: true}) | safe }}</content>
<content type="text/html" mode="escaped">{{ post.data.description | md({linkify: true, breaks: true, xhtmlOut: true}) | safe }}</content>
{% for entry in post.data.authors %}
{%- set author = collections.authors[entry] -%}
<author>
Expand Down
2 changes: 1 addition & 1 deletion src/site/content/en/tags/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pagination:
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | replace("web-copy-code", "div") | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
<content type="text/html" mode="escaped">{{ post.templateContent | replace("web-copy-code", "div") | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
{% for entry in post.data.authors %}
{%- set author = collections.authors[entry] -%}
<author>
Expand Down

0 comments on commit 4a7c0e9

Please sign in to comment.