Comments (1)
Hello @fi0
Thank you for contacting. This is not a bug in the template. This is the way it is expected to work, and it is not recommended to include <content>
in the RSS, partly because the content
field is not recognized by the rss feed specification.
In any case, if you want to carry it out, before, take into account the following: according to the link you share, it specifies that you can use post.compiledContent() only if markdown is included, not for MDX.
However, if you create the list of RSS feed objects yourself, you can pass the content of Markdown files
(not MDX)
, to the content key using the compiledContent() property.
If in the use that you are giving to the template you only include markdown (.md) then you can do the following:
- Go to this file https://github.com/onwidget/astrowind/blob/main/src/utils/posts.js#L1 and add in the
getNormalizedPost
method the return of thecompiledContent
property (in case it is available, only for markdown) - In the https://github.com/onwidget/astrowind/blob/main/src/pages/rss.xml.js file do something similar to what is specified in the link you shared:
content: sanitizeHtml(post.compiledContent())
from astrowind.
Related Issues (20)
- button on contact form not working HOT 1
- How to update the icon library HOT 3
- how to prevent auto translation for my arabic tags HOT 7
- Update for Astro 4.0 HOT 3
- openGraph image won't work with same format as demo
- Astro embed not working HOT 1
- Zoom Level/Font Size is different for Edge Chromium compared to Chrome and Firefox HOT 6
- sharp error HOT 6
- Cloudflare pages builds are failing: munmap_chunk(): invalid pointer HOT 12
- How to create a new content collection similar to blogs? HOT 2
- Deploy waring HOT 1
- Is it possible to change the icon library? Astro-icon isn't importing icons from other icon sets HOT 1
- Error: Unable to locate the "tabler" icon set! HOT 1
- How are you using i18n HOT 1
- I had a problem with installing @tabler-icons-react and flat-color-icons
- Strange spacing CSS bug in blog excerpts HOT 2
- why still in beta
- missing "use this template" button
- Author isn't displayed on the post HOT 1
- output: 'static' to output: 'server' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astrowind.