jekyll-theme-chirpy icon indicating copy to clipboard operation
jekyll-theme-chirpy copied to clipboard

Issue with <content src="{{ post_absolute_url }}" /> in Feed

Open YorkWaugh opened this issue 1 year ago • 2 comments

Checklist

Is your feature request related to a problem? Please describe

I’ve noticed that the feed generated by the Jekyll Chirpy theme uses <content src="{{ post_absolute_url }}" />, which, while defined in the Atom standard, seems to have limited support among RSS readers. This leads to difficulties for users trying to read the full content of posts through their RSS readers, as many may not handle external links properly.

Describe the solution you'd like

I would suggest using the complete HTML of the page within the tag instead of a reference to the URL. This would ensure that all readers, regardless of their implementation, can properly display the content.

Describe alternatives you've considered

Currently, my temporary workaround involves adding the following code in the _includes/post-content.html file:

{%- capture content -%}
{%- if post.content -%}
  {{- post.content -}}
{%- else -%}
  {%- include no-linenos.html content=post.content -%}
{%- endif -%}
{%- endcapture -%}

{{- content | strip -}}

Then, I replace <content src="{{ post_absolute_url }}" /> in feed.xml with: <content type="html"><![CDATA[{% include post-content.html %}]]></content>

Additional context

No response

YorkWaugh avatar Sep 29 '24 02:09 YorkWaugh

This conversation has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 29 '24 00:11 github-actions[bot]

@cotes2020 could you take a look here please? I think it's a really useful feature

vaaleyard avatar Jun 03 '25 14:06 vaaleyard