lukeorth / poison

Professional Hugo theme for dev bloggers. Based on Mdo's classic Hyde theme.
https://poison.lukeorth.com
GNU General Public License v3.0
205 stars 97 forks source link

Fix series URL #192

Open ctmbl opened 1 month ago

ctmbl commented 1 month ago

A fix for the issue I mentioned in #173

But in the case of series the baseURL is simply prefixed to the relative path, which isn't robust, for example if baseURL doesn't finish with a / (it is my case and it breaks, try clicking on the series at https://iscsc.fr/posts/introducing-poison/): if baseURL=http://example.com it will built the URL http://example.comseries/my-series which of course will fail.

Note: .LinkTitle redirect to Title if the parameter is not used

And a minor fix for a syntax highlight issue caused by conflicting quotes: before the fix: syntax highlight before after the fix: syntax highlight after