hugo-PaperMod/layouts
David Segonds 4cc3fb26ce Modify breadcrumbs logic
First part of the breadcrumbs generation algorithm is to remove the
base URL from the parent's permalink URL.

In the existing code, this is achieve by replacing all instances of
base URL in the parent's permalink URL by an empty string.

This algorithm fails to produces breadcrumbs in the instance where the
base URL is "/" for example.

I believe this is erroneous as only the first instance of the base URLi,
starting at the beginning of the parent's permalink URL should be
replaced by an empty string.

This is the reason I replaced the call to "replace" by a call to
"replaceRE".
2023-01-06 09:11:50 +01:00
..
_default Add param 'hiddenInHomeList' to hide certain post from home page 2022-08-20 14:31:07 +05:30
partials Modify breadcrumbs logic 2023-01-06 09:11:50 +01:00
shortcodes Fix spacing around rawhtml shortcode (#1018) 2022-08-28 15:18:20 +05:30
404.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
robots.txt Use site function instead of .Site or $.Site 2022-03-27 18:44:06 +05:30