summaryrefslogtreecommitdiffstats
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-26 19:02:22 +0200
committerDanilo M. <danix@danix.xyz>2026-06-26 19:02:22 +0200
commit49635ab3e84106c189596a941f77eded2dd74449 (patch)
treec13526c2bdafb692063d41172788e246f40d6184 /layouts/partials/header.html
parent94ec68f7bc4a439b1373f754b202b0fa555b2d82 (diff)
downloaddanixxyz-theme-49635ab3e84106c189596a941f77eded2dd74449.tar.gz
danixxyz-theme-49635ab3e84106c189596a941f77eded2dd74449.zip
feat: external-link glyph on external menu itemsHEADmaster
Append a feather external-link icon to entries flagged external (Projects → git.danix.xyz subdomain), in both the desktop nav and the mobile hamburger overlay, signaling off-site links. Recompiled CSS for the new utility classes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 050f27f..9810096 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -37,7 +37,7 @@
{{ if $isActive }}aria-current="page"{{ end }}
{{ if $isExternal }}target="_blank" rel="noopener noreferrer"{{ end }}
>
- {{ if $isExternal }}{{ .Name }}{{ else }}{{ i18n .Name }}{{ end }}
+ {{ if $isExternal }}{{ .Name }}<i data-feather="external-link" class="inline-block w-3.5 h-3.5 ml-1 align-middle" aria-hidden="true"></i>{{ else }}{{ i18n .Name }}{{ end }}
</a>
{{ end }}
{{ end }}