Spyke
neocities·NeocitiesbyPiraHxCx

Easy script to autogenerate an RSS feed for your site

Do you have a blog or update list or you post articles on different pages, and you customized your template instead of using those Django, Nunjucks or whatever, and would like to have RSS feed auto generated compatible with the mess of HTML you created?

This is a simple script for you to copy to your local folder and run and create an Atom Feed for your site, and it should be easy enough for any webmaster to use. All you have to do is fill 6 fields: Your feed title, your site url, the url of your blog/news/updates/whatever-you-want-to-create-a-feed-for, the element that wraps your entries, the element that wraps your entry titles, the element that wraps your entry dates.

Maybe you just have one page with your blog, but maybe you have a page for a journal, another for a microblog, another for your media consumption, and on your index and you have a div with updates you done in the site and also different pages for articles you wrote, you can list all of them... is each using different elements for entries? Not a problem, you can target all of them and the script will look for matches.

check: https://pirahxcx.neocities.org/computer-nerding#pirafeed

View original on lemmy.dbzer0.com
No comments on the original post yet.
Easy script to autogenerate an RSS feed for your site | Spyke