Skip to content

Commit

Permalink
fix: misaligned page title when logo is not displayed (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorlanigan authored Feb 17, 2025
1 parent ddc017b commit ab56c66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<nav class="hx-mx-auto hx-flex hx-items-center hx-justify-end hx-gap-2 hx-h-16 hx-px-6 {{ $navWidth }}">
<a class="hx-flex hx-items-center hover:hx-opacity-75 ltr:hx-mr-auto rtl:hx-ml-auto" href="{{ $logoLink }}">
{{- if (.Site.Params.navbar.displayLogo | default true) }}
<img class="hx-block dark:hx-hidden" src="{{ $logoPath | relURL }}" alt="{{ .Site.Title }}" height="{{ $logoHeight }}" width="{{ $logoWidth }}" />
<img class="hx-hidden dark:hx-block" src="{{ $logoDarkPath | relURL }}" alt="{{ .Site.Title }}" height="{{ $logoHeight }}" width="{{ $logoWidth }}" />
<img class="hx-mr-2 hx-block dark:hx-hidden" src="{{ $logoPath | relURL }}" alt="{{ .Site.Title }}" height="{{ $logoHeight }}" width="{{ $logoWidth }}" />
<img class="hx-mr-2 hx-hidden dark:hx-block" src="{{ $logoDarkPath | relURL }}" alt="{{ .Site.Title }}" height="{{ $logoHeight }}" width="{{ $logoWidth }}" />
{{- end }}
{{- if (.Site.Params.navbar.displayTitle | default true) }}
<span class="hx-mx-2 hx-font-extrabold hx-inline hx-select-none" title="{{ .Site.Title }}">{{- .Site.Title -}}</span>
<span class="hx-mr-2 hx-font-extrabold hx-inline hx-select-none" title="{{ .Site.Title }}">{{- .Site.Title -}}</span>
{{- end }}
</a>

Expand Down

1 comment on commit ab56c66

@vsosp16
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that related?

$ hugo build
Start building sites …
hugo v0.144.0-b289b17c433aa8ebf8c73ebbaf4bed973ac8e4d5+extended windows/amd64 BuildDate=2025-02-17T16:22:31Z VendorInfo=gohugoio

Total in 363 ms
Error: error building site: EXECUTE-AS-TEMPLATE: failed to transform "/json/search-data.json" (application/json): template: /json/search-data.json:17:15: executing "/json/search-data.json" at <partial "utils/fragments" (dict "context" $page "type" $indexType)>: error calling partial: "C:\Users\vsosp\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\imfing\hextra@v0.9.4\layouts\partials\utils\fragments.html:43:69": execute of template failed: template: partials/utils/fragments.html:43:69: executing "partials/utils/fragments.html" at <$page.RenderString>: error calling RenderString: ":24:5": got closing shortcode, but none is open

Please # to comment.