zaproxy / zaproxy-website

The source of ZAP website
https://www.zaproxy.org
MIT License
64 stars 108 forks source link

RSS feed is kind of hiden and does not validate #607

Open phb95 opened 3 years ago

phb95 commented 3 years ago

I was not able to add the blog feed to my feed reder (Thunderbird)

There is no feed icon on the blog page but I found a link in the source code that points to https://www.zaproxy.org/blog/index.xml

But this does not validate with http://validator.w3.org/feed/

kingthorin commented 3 years ago

This is failing because Hugo expects BaseURL to be Hostname (and path) to the root, however we have it set simply as / (likely because that makes local testing setups easier).

https://github.com/zaproxy/zaproxy-website/blob/bff030b874a7fe23c265819b7bf4e1374058fcdf/site/config.yaml#L1

I was able to confirm on a local test setup that baseurl: "http://0.0.0.0:3000/" works as expected.

Also the blog feed seems to be using a default Hugo bundled template while the base site feed uses the index.rss.xml in layouts. Hard coding the scheme/host in that file seems to work (for the base site), however copying the altered version to layouts/blog did not seem to work.