Skip to content

Commit 9896dcb

Browse files
committed
Temporary fix for baseurl problem
1 parent 60dee12 commit 9896dcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/partials/assets/navbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
{{- end -}}
155155
{{- end -}}
156156

157-
{{ if $logo }}{{ $logo = urls.JoinPath $baseURL $logo }}{{ end }}
157+
{{ if $logo }}{{ $logo = urls.JoinPath "/" $logo }}{{ end }}
158158
{{ if $logoLight }}{{ $logoLight = urls.JoinPath $baseURL $logoLight }}{{ end }}
159159
{{ if $logoDark }}{{ $logoDark = urls.JoinPath $baseURL $logoDark }}{{ end }}
160160

@@ -214,7 +214,7 @@
214214
<img src="{{if $absoluteURL }}{{ absURL $logoDark }}{{ else }}{{ $logoDark }}{{ end }}" class="d-none-inline-light" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}>
215215
{{- else if $logo -}}
216216
{{ $width := partial "utilities/GetWidth.html" (dict "path" $logo "height" 30) }}
217-
<img src="{{if $absoluteURL }}{{ absURL $logo }}{{ else }}{{ $logo }}{{ end }}" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}><small class="ps-4 d-none d-{{ $size }}-inline">{{ $title }}</small>
217+
<img src="{{if $absoluteURL }}{{ absURL $logo }}{{ else }}{{ $logo }}{{ end }}" alt="" height="30"{{ with $width }} width="{{ . }}"{{ end }}><small class="ps-4 d-none d-{{ $size }}-inline">{{ $title }}</small>
218218
{{- else -}}
219219
<div class="navbar-title fw-bold h-100">{{ $title }}</div>
220220
{{- end -}}

0 commit comments

Comments
 (0)