i've been putting it off because i can't find one that outlines the actual format, just like, what it is in abstract
I shouldn't have come here
i've been putting it off because i can't find one that outlines the actual format, just like, what it is in abstract
you can take a look at my feed as an example if you like! i'm, uh, learning things the hard way, as you can see by the comments... https://liese.dev/posts.xml
also, i made this by staring at the atom RFC for longer than i perhaps should have. but i like RFCs!
thank you! more examples are always good!
of course there's an rfc, i should have thought of that 😅
i noticed this rather late, but Firefox seems to strip some important details from that XML view, such as the top-level xmlns attribute that brings the Atom namespace into scope :/ make sure to look at the raw file!
thanks for the heads up! between all the various sources on here i figured it out anyway, but good to know c:
you can crib off my playful test (not a real feed, will be removed later, say after 2024): https://kylieneko.neocities.org/firstfeed.xml (view source if browser just renders it as text blob)
seems most readers only like the "text", "html", and "xhtml" content types tho, many seem to ignore category tags completely, and a bunch of other weirdness.
another thing I thought of later was just play with Publii, even if you don't intend to use it, and see what it generates and crib from that.
i ended up copying some from other sites, and since i needed to host images i found that using escaped html tags works better than CDATA so it looks like a mess
ohh, i never considered the content would need to be escaped somehow... makes sense!
If you're using Atom (and maybe with RSS?) you can do content type 'xhtml' and with a div that imports the namespace you don't need to escape anything, at the cost of having to be xhtml-y. (i.e. close the img tag, <img src="foo" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<img src="favicon.png" width="64" height="64" alt="Chibi Kylie sitting in front of a trans-ace-lesbian flag" />
<p>Can't do any interesting styles like floating or anything, but you can (X)HTML it.</p>
</div>
</content>
If you're looking to do it manually, I wrote up a thing about it with a simple template: https://docs.google.com/document/d/1NviGoDnR0LSOE6cJoBmITm_YIOM7EA5yMeydDpYkcXU/edit?usp=drivesdk