Work on two native and two WP fed sites
Posted on 25th May 2026 at 09:00 by Admin
Have four VScode windows up for four sites
- astro-blog. Native site from content collection called ‘blog’
- astro-local. Local WP fed site. Deployed to Cloudflare directly with % npm run deploy
- astro-test. First site. Local without content collection
- astro-wpress. Cloud fed WP site
Compare and contrast these files
- /astro.config.mjs
- /src/layouts/Layout.astro
- src/pages/rss.xml.js
Issues found
-
astro-blog. Didn’t have an RSS specification in Layout.astro.
Correct feed picked up by ncvp.co.uk/rss from footer icon.
No sign of ‘rss’ in <head> in local or cloud page source.
ncvp.co.uk must have guessed it anyway. -
astro-test. Same issue as astro-blog.
-
astro-local. ncvp.co.uk/rss showing wrong feed url: https:///rss.xml
This line:<link rel="alternate" type="application/rss+xml" title="al.ncvp.me RSS feed" href="/rss.xml">appearing in the cloud <head>
Problem in Layout.astro. Replacehref="/rss.xml"in specification link withhref={`${Astro.site}rss.xml`}
That fixed it -
Passim. The post excerpt is usually not a good summary. What to do about this? WP and natively sourced sites.
Lessons learned
- Don’t need the
<link type="application/rss+xml ...>tag, but it’s probably a good idea
Test
When looking good locally, deploy to cloud and check again
Copying this post
Originated in astro-blog. Simply copy to astro-test. (Having changed category from ‘Devt’ to ‘Dev’. This needs sorting out.)
Conclusion
Obviously a good thing, event though no one (not even me) uses it.