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

RSS Feed for Blog #116

Closed
melloware opened this issue Sep 26, 2024 · 10 comments · Fixed by #170, #171 or #174
Closed

RSS Feed for Blog #116

melloware opened this issue Sep 26, 2024 · 10 comments · Fixed by #170, #171 or #174
Assignees
Milestone

Comments

@melloware
Copy link
Contributor

One of the things Gatsby does is it generates this in the <head>

<link rel="alternate" type="application/rss+xml" title="Melloware Blog" href="[/rss.xml]"/>

and example of the RSS feed it generates is

https://www.melloware.com/rss.xml

@ia3andy
Copy link
Contributor

ia3andy commented Sep 26, 2024

Yeah this, sitemap and search were in my head.. should be easy now with my recent changes..

@melloware
Copy link
Contributor Author

We could code by hand or use this zero dependency RSS lib.

https://github.com/w3stling/rssreader

Its nice and its just 100% java with nothing else

@melloware
Copy link
Contributor Author

Ahhh darn that only reads it doesn't write...

@mcruzdev
Copy link
Member

mcruzdev commented Oct 5, 2024

@melloware this one can be closed?

@melloware
Copy link
Contributor Author

No I think we still want to work on it.

@ia3andy
Copy link
Contributor

ia3andy commented Oct 6, 2024

Yeah I need to allow different kind of files

@ia3andy ia3andy added this to the 1.0 milestone Oct 8, 2024
@ia3andy
Copy link
Contributor

ia3andy commented Oct 9, 2024

This one is for you :)

@melloware
Copy link
Contributor Author

melloware commented Oct 9, 2024

Andy any guidance on the best way to accomplish this? Even just some pseudo-code steps?

The idea I assume is to as part of the build generate a static rss.xml file and then add a Qute tag to expose the URL like...

<link rel="alternate" type="application/rss+xml" title="Melloware Blog" href="[/rss.xml]"/>

@ia3andy
Copy link
Contributor

ia3andy commented Oct 9, 2024

@melloware I would go for:

  • 1 include (similar to paginate) for the rss.xml (fm/rss.xml)
  • 1 tag for <link rel="alternate" type="application/rss+xml" title="Melloware Blog" href="[/rss.xml]"/>

In the include you will need to iterate on the given collection name like it's done in the index.html, have a look at the blog tag page to read the collection from a parametrised name.

@melloware
Copy link
Contributor Author

Love it will work on this ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment