hugo-theme-learn icon indicating copy to clipboard operation
hugo-theme-learn copied to clipboard

link of logo not pointing to basepath

Open Nightshadelink opened this issue 2 years ago • 1 comments

Problem:

Whenever the web pages are not deployed in the root but under a subpath you cannot use the click on the logo as the link points to the urls root and not the basepath of your website.

Presumed cause:

In .../layouts/partials/logo.html

<a id="logo" href='{{ (cond (and (ne .Site.Params.landingPageURL nil) (.Site.IsMultiLingual)) .Site.Params.landingPageURL "/") }}'>

no relLangURL so href does not carry the BasePath.

Proposed modification:

add relLangURL

<a id="logo" href='{{ (cond (and (ne .Site.Params.landingPageURL nil) (.Site.IsMultiLingual)) .Site.Params.landingPageURL "/") | relLangURL }}'>

System-Info:

vanilla deployed on github-pages

Nightshadelink avatar Jan 10 '23 19:01 Nightshadelink

This theme currently isn't really actively maintained. Meanwhile you could use my fork where this and a lot of other bugs are fixed.

McShelby avatar Jan 11 '23 16:01 McShelby