hugo-kiera icon indicating copy to clipboard operation
hugo-kiera copied to clipboard

Rss feed

Open crazymonkyyy opened this issue 4 years ago • 3 comments

I was told my site rss feed doesn't work in thunderbird; I dont know if this is my fault, I ripped out some js but it works in feedly at least partially

https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fmonkyyy.science%2Findex.xml

crazymonkyyy avatar Jan 20 '21 02:01 crazymonkyyy

The problem is that you're building the site without having baseURL set (or it's set baseURL = "/"). Because of this, the RSS feed contains relative URLs. which an RSS reader is unable to interpret (because they dont' know what domain to point it to).

Are you able to set baseURL = https://monkyyy.science in the config file?

funkydan2 avatar Jan 20 '21 03:01 funkydan2

It was already "monkyyy.science", I added the http just to be sure does it work with thunderbird with other sites?, feedly always worked for me but I verified that thunderbird is broken

I was took a slegdehammer to the theme to make it always dark,(didnt see the custom css in config at the time) if thunderbird works for others i'd probaly should just grab a fresh copy

crazymonkyyy avatar Jan 21 '21 01:01 crazymonkyyy

Overriding the CSS shouldn't impact this.

If you look at the output from the feed validator, you can see the issue is there the RSS file has relative URLs rather than absolute.

This feed does not validate.
line 5, column 10: link must be a full and valid URL: / [help]
   <link>/</link>

The data between <link></link> is generated by the .Permalink variable. The output of .Permalink can be configured in the config file and when baseURL isn't correctly set, it will output relative URLs rather than absolute.

funkydan2 avatar Jan 21 '21 01:01 funkydan2