pastly / bm

Blog Maker - Build a blog with bash, make, and other GNU shell utilities. Ongoing development has essentially stopped.
Other
21 stars 3 forks source link

[BUG] ROOT_URL variable is not respected in hyperlinks from home page #15

Open aadibajpai opened 4 years ago

aadibajpai commented 4 years ago

If you're at https://aadibajpai.com/blog/ and you try clicking on any of the links in the ToC then they will be broken, but if you open the post and then navigate then they'll work as expected.

I assume this one is as simple as inserting that ROOT_URL variable wherever the toc generation takes place 🤔

aadibajpai commented 4 years ago

Looks like it's not respected from the "All Posts" page either https://aadibajpai.com/blog/posts/index.html, all links from here are broken

aadibajpai commented 4 years ago

same for https://aadibajpai.com/blog/tags/index.html, I think the issue is that no ROOT_URL is present in https://github.com/pastly/bm/blob/master/internal/globals.sh#L183 and https://github.com/pastly/bm/blob/master/internal/globals.sh#L241