hmngwy / jenny

A bash-based static blog generator
MIT License
93 stars 17 forks source link

Malformed url in tag feeds #35

Open skiserv opened 1 year ago

skiserv commented 1 year ago

A friend of mine spotted an issue in the feed for a tag. The item link looks like http://manilafunctional.com./../post/python-list-comprehensions.html (comes from your website ). If the ./../ can be supported by webbrowsers (it works in firefox in my case), it do not work for some feed readers

skiserv commented 1 year ago

I spent some time to fix it, but cannot achieve to something clean fully working with relatives paths

The main fix is to remove the url prefix here https://github.com/hmngwy/jenny/blob/5cba30df6cf758bda92cf2135fac5b0fb4edd96c/share/jenny/lib/components.sh#L57 And really pass the url prefix when building pages, not another different fixed value. But I didn't get something working everywhere, except using absolute path to articles (/post/mypost_name.html) rather than relative path.