From bf85845bc21f44b1d910e2e70918066558c8809b Mon Sep 17 00:00:00 2001 From: Miles Barr <1018475+milesbarr@users.noreply.github.com> Date: Sun, 14 Sep 2025 09:03:43 -0700 Subject: [PATCH] Fix HTML for menu items that only have an icon --- .../partials/header/header-mobile-option-simple.html | 11 +++++++---- layouts/partials/header/header-option-simple.html | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/layouts/partials/header/header-mobile-option-simple.html b/layouts/partials/header/header-mobile-option-simple.html index 98a77b33..8efd3d10 100644 --- a/layouts/partials/header/header-mobile-option-simple.html +++ b/layouts/partials/header/header-mobile-option-simple.html @@ -6,14 +6,17 @@ }} target="_blank" {{ end }} - class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400"> + class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400" + title="{{ .Title }}"> {{ if .Pre }}
- {{ .Name | markdownify }} -
+ {{ if .Name }} ++ {{ .Name | markdownify }} +
+ {{ end }} diff --git a/layouts/partials/header/header-option-simple.html b/layouts/partials/header/header-option-simple.html index a934a5b9..a3f8e32b 100644 --- a/layouts/partials/header/header-option-simple.html +++ b/layouts/partials/header/header-option-simple.html @@ -1,13 +1,16 @@ + class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400" + title="{{ .Title }}"> {{ if .Pre }} {{ partial "icon.html" .Pre }} {{ end }} -- {{ .Name | markdownify }} -
+ {{ if .Name }} ++ {{ .Name | markdownify }} +
+ {{ end }}