Skip to content

Commit 4d7502f

Browse files
committed
Update feeds
1 parent 9ed5bbf commit 4d7502f

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

assets/rbloggers.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,18 @@ permalink: ./rbloggers.xml
3737
{%- assign words = document.content | strip_html | number_of_words -%}
3838
{%- assign minutes = words | divided_by: wpm | ceil | at_least: 1 -%}
3939
<entry>
40-
<title>{{ document.title | strip_html | escape }}</title>
41-
<link href="{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}" rel="alternate" type="text/html" title="{{ document.title | strip_html | escape }}"/>
40+
<title type="html">{{ document.title | markdownify | remove: '<p>' | remove: '</p>' | strip | strip_newlines | xml_escape | escape }}</title>
41+
<link href="{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}" rel="alternate" type="text/html" title="{{ document.title | markdownify | strip_html | xml_escape | escape }}"/>
4242
<published>{{ document.date | date_to_xmlschema }}</published>
4343
<updated>{{ document.last_modified_at | default: document.date | date_to_xmlschema }}</updated>
4444
<id>{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}</id>
4545
<content type="html" xml:base="{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}">
4646
{% if document.subtitle %}
47-
{{ '<h3>' | append: document.subtitle |
48-
append: '</h3>' | escape }}
4947

48+
{%- assign thesub = document.subtitle | markdownify -%}
49+
{%- assign thesub = thesub | remove: '<p>' | remove: '</p>' | strip | strip_newlines %}
50+
51+
{{ '<h3>' | append: thesub | append: '</h3>' | xml_escape | escape }}
5052
{% endif %}
5153
{% if entryimg %}
5254
{{ "<img src='" | append: entryimg | append: "' >" | escape }}

assets/rweekly.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,18 @@ permalink: ./rweekly.xml
3737
{%- assign words = document.content | strip_html | number_of_words -%}
3838
{%- assign minutes = words | divided_by: wpm | ceil | at_least: 1 -%}
3939
<entry>
40-
<title>{{ document.title | strip_html | escape }}</title>
41-
<link href="{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}" rel="alternate" type="text/html" title="{{ document.title | strip_html | escape }}"/>
40+
<title type="html">{{ document.title | markdownify | remove: '<p>' | remove: '</p>' | strip | strip_newlines | xml_escape | escape }}</title>
41+
<link href="{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}" rel="alternate" type="text/html" title="{{ document.title | markdownify | strip_html | xml_escape | escape }}"/>
4242
<published>{{ document.date | date_to_xmlschema }}</published>
4343
<updated>{{ document.last_modified_at | default: document.date | date_to_xmlschema }}</updated>
4444
<id>{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}</id>
4545
<content type="html" xml:base="{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}">
4646
{% if document.subtitle %}
47-
{{ '<h3>' | append: document.subtitle |
48-
append: '</h3>' | escape }}
4947

48+
{%- assign thesub = document.subtitle | markdownify -%}
49+
{%- assign thesub = thesub | remove: '<p>' | remove: '</p>' | strip | strip_newlines %}
50+
51+
{{ '<h3>' | append: thesub | append: '</h3>' | xml_escape | escape }}
5052
{% endif %}
5153
{% if entryimg %}
5254
{{ "<img src='" | append: entryimg | append: "' >" | escape }}

0 commit comments

Comments
 (0)