picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 616 forks source link

RSS Support? #672

Closed francesmothrock closed 1 year ago

francesmothrock commented 1 year ago

Pico is wonderful, but I have been unable to find out how to implement RSS support. I followed the instructions for RSS creation here and don't get any response when I enter [mywebsite.com]/feed/ It just shows the same page without changing, and RSS readers say no feed is found. https://picocms.org/cookbook/

I am on Pico 3.0.0 Alpha 2. I had to move to Alpha to get it to work with php 8.1, so I can't know if the Stable version would work

Are there other RSS solutions to try? RSS is a key feature for me. Forgive me if I am missing something simple, I am not a programmer. Thank you!

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1:

PhrozenByte commented 1 year ago

don't get any response when I enter [mywebsite.com]/feed/ It just shows the same page without changing

What exactly does this mean? Is an empty page shown, is Pico's index page shown, is Pico's 404 page shown, is an error page of your webserver shown, or is the RSS feed XML shown?

Is URL rewriting enabled? Try mywebsite.com/?feed instead.

francesmothrock commented 1 year ago

Sorry for being unclear. It just goes back to the index page and doesn't show any rss related information.

When I search for an RSS feed using an RSS reader it says not a valid feed and can't find one.

PhrozenByte commented 1 year ago

You did create both a content/feed.md with Template: feed in the YAML Front Matter (and otherwise empty content) and a themes/<your theme>/feed.twig, right? Seeing Pico's index page when accessing example.com/feed rather indicates some misconfiguration of your webserver. Did you try requesting example.com/?feed instead?

francesmothrock commented 1 year ago

I will have to go back and see if I made any mistakes in setting up the two feed files, but when I go to example.com/?feed, it works. So thank you! It didn't occur to me to try that syntax. Sorry for the trouble.