rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.46k stars 777 forks source link

Use ref function for building taxonomy URLs to support uglyURLs #402

Open steven-hadfield opened 1 year ago

steven-hadfield commented 1 year ago

Currently, the template assumes that uglyURLs = false and that URLs should end with /. This MR changes links to use rel to generate the links instead to allow links to be rendered correctly regardless of the value for uglyURLs.

Note that this imposes a restriction that there is no overlap between tags and categories (but Hugo may be enforcing this already).