Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
YorkWaugh opened this issue Sep 29, 2024 · 0 comments
Open
1 task done

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

YorkWaugh opened this issue Sep 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@YorkWaugh
Copy link

YorkWaugh commented Sep 29, 2024

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 YorkWaugh added the enhancement New feature or request label Sep 29, 2024
@github-staff github-staff deleted a comment Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant