new listings daily roundups rss

This commit is contained in:
2026-05-03 08:11:23 -07:00
parent d3441c94b0
commit 7a7e977270
28 changed files with 611 additions and 4 deletions

View File

@ -0,0 +1,13 @@
import debugUtil from "debug";
const debug = debugUtil("Eleventy:Rss");
// This is deprecated! Use the Eleventy HTML <base> plugin instead (2.0+)
export default function(url, base) {
try {
return (new URL(url, base)).toString()
} catch(e) {
debug("Trying to convert %o to be an absolute url with base %o and failed, returning: %o (invalid url)", url, base, url)
// TODO add debug output!
return url;
}
};