mirror of https://github.com/jpanther/congo.git
🐛 Fix homepage link when `baseURL` contains sub-directories in path
parent
bdf9928443
commit
971e8b631d
|
@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
- Search link does not appear in header if main menu has no items to display
|
- Search link does not appear in header if main menu has no items to display
|
||||||
- Search only returns results in the primary language when multiple languages are available ([#229](https://github.com/jpanther/congo/issues/229))
|
- Search only returns results in the primary language when multiple languages are available ([#229](https://github.com/jpanther/congo/issues/229))
|
||||||
|
- Link to homepage would be incorrect in some deployments if `baseURL` contained sub-directories in the path
|
||||||
|
|
||||||
## [2.2.3] - 2022-06-22
|
## [2.2.3] - 2022-06-22
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{{ if .Site.Params.Logo -}}
|
{{ if .Site.Params.Logo -}}
|
||||||
{{ $logo := resources.Get .Site.Params.Logo }}
|
{{ $logo := resources.Get .Site.Params.Logo }}
|
||||||
{{ if $logo }}
|
{{ if $logo }}
|
||||||
<a href="{{ "/" | relLangURL }}">
|
<a href="{{ "" | relLangURL }}">
|
||||||
<img
|
<img
|
||||||
src="{{ $logo.RelPermalink }}"
|
src="{{ $logo.RelPermalink }}"
|
||||||
width="{{ div $logo.Width 2 }}"
|
width="{{ div $logo.Width 2 }}"
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
<a
|
<a
|
||||||
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
||||||
rel="me"
|
rel="me"
|
||||||
href="{{ "/" | relLangURL }}"
|
href="{{ "" | relLangURL }}"
|
||||||
>{{ .Site.Title | markdownify | emojify }}</a
|
>{{ .Site.Title | markdownify | emojify }}</a
|
||||||
>
|
>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in New Issue