-
Notifications
You must be signed in to change notification settings - Fork 9
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
xml:base
in Atom feeds does not appear to be respected
#566
Comments
For anyone running into this in the future, add to your netlify.toml: [[plugins]]
package = "netlify-plugin-checklinks"
[plugins.inputs]
skipPatterns = [
"_site/feed.xml",
]
|
Sounds like the missing inclusion of Could you create a reduced test case with one html-file that links to a feed, which links to an image in this manner, so we can add it to the Assetgraph test cases and base a path upon it? The CSS issue you mention lacks a bit too much information for me to act upon. But you are welcome to open another issue with it so we can have a look if you found a bug, or if our error messages are maybe just too cryptic :P |
I just added an exception for all css links for now, I'll open a new issue with a reduced example when I restyle my site. The below will need some massaging to fit your test suite's architecture but here's some reduced code from my own website. Both files validate, the html with https://validator.w3.org/nu/ and the xml with https://validator.w3.org/feed/. feed.xml:The important things to modify for testing here are <?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" >
<updated>2022-04-27T09:26:27+00:00</updated>
<id>https://numi.st/feed.xml</id>
<title type="html">my cool website title</title>
<entry>
<title type="html">my cool entry title</title>
<updated>2022-04-21T00:00:00+00:00</updated>
<id>https://numi.st/post/2022/travel-uke</id>
<content type="html" xml:base="https://numi.st/post/2022/travel-uke/">
<![CDATA[<p><img src="IMG_1232.jpeg" /></p>]]>
</content>
<author><name>Not Blank</name></author>
</entry>
</feed> index.html:Obv <!DOCTYPE html>
<html lang="en">
<head>
<title>my site title</title>
<link type="application/atom+xml" rel="alternate" href="https://numi.st/feed.xml" />
</head>
<body></body>
</html> |
@papandreou I'm pretty sure we have the correct modeling of an inline HTML-fragment in an atom |
The superclass ( The challenge seems to be that you can have an |
I'm using
jekyll-postfiles
to keep content (like images) local to the post, and the local references work with a feed reader thanks to anxml:base
attribute on thecontent
tag emitted byjekyll-feed
.Unfortunately those links are failing per
netlify-plugin-checklinks
:Is this more of a
hyperlink
problem, or is it HTML-only?The text was updated successfully, but these errors were encountered: