-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Atom/RSS feed error #493
Comments
Interesting. I can't help other than confirm I see this issue too. I haven't dug any deeper other than verifying my garden's feed at https://hive.mod0.org/feed.xml has same error. I've not used/looked at that before and so not a big deal for me yet but is a feature I would like working for some future integrations. Uninformed thought/no research: I wonder if the difference between working/non-working feeds is triggered by a specific post title/comment that has special characters in it that need to be escaped before being tossed to the generator of the feed. |
I looked more closely. In the working RSS, the 'feed.xml' file correctly closes the 'link' tag.
But, in the faulty RSS, the 'link' tag isn't closed properly.
|
Interesting. Looping back to learn more about this by playing around and documenting my thought process in case it helps others debug this. In the the feed.njk template it has four //// for the links like so: https://github.com/oleeskild/digitalgarden/blob/main/src/site/feed.njk#L10 <link href="{{ meta.siteBaseUrl }}{{ permalink }}" rel="self" ////>` The reason behind using four <link href="{{ metadata.url }}"/> However, we don't have a I did a few quick tests directly on my site to see if removing the extra /// solved the feed issue. (Running with scissors in my own garden is fun). When switching to a single / I ended up with none rendered in the final feed.xml. I tried doing
So yeah, apparently the fix in <link href="{{ meta.siteBaseUrl }}{{ permalink }}" rel="self" /////>
<link href="{{ meta.siteBaseUrl }}" /////> |
I just applied the fix suggested by @dayne. The /feed.xml from my digital garden is not throwing errors anymore. There were three lines on the feed.njk file where I added an extra |
fix for feed.xml issue: oleeskild/obsidian-digital-garden#493
Hi, it seems that the error is still present. example, this test site that I'm using https://functionalitytest.vercel.app/feed.xml |
Eventually, rss works fine by applying the previously mentioned fix |
There was a problem with the Atom/RSS feed at /feed.xml. The error message says
error on line xx at column 17: Opening and ending tag mismatch: link line xx-1 and entry
. The specific linexx
with the error can vary from site to site.I found similar errors in these feeds: https://notes.ole.dev/feed.xml and https://hermitage.utsob.me/feed.xml. But these feeds are fine: https://dg-docs.ole.dev/feed.xml and https://notes.johnmavrick.com/feed.xml.
The text was updated successfully, but these errors were encountered: