summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--assets/css/main.min.css12
-rw-r--r--layouts/partials/hamburger-menu.html2
-rw-r--r--layouts/partials/header.html2
3 files changed, 14 insertions, 2 deletions
diff --git a/assets/css/main.min.css b/assets/css/main.min.css
index 048b8e7..b51a910 100644
--- a/assets/css/main.min.css
+++ b/assets/css/main.min.css
@@ -2456,6 +2456,10 @@ article.border.border-border\/30.rounded-lg.overflow-hidden.group.menu-overlay {
margin-left: 0.25rem;
}
+.ml-1\.5 {
+ margin-left: 0.375rem;
+}
+
.ml-2 {
margin-left: 0.5rem;
}
@@ -2522,6 +2526,10 @@ article.border.border-border\/30.rounded-lg.overflow-hidden.group.menu-overlay {
display: block;
}
+.inline-block {
+ display: inline-block;
+}
+
.inline {
display: inline;
}
@@ -3126,6 +3134,10 @@ article.border.border-border\/30.rounded-lg.overflow-hidden.group.menu-overlay {
text-align: right;
}
+.align-middle {
+ vertical-align: middle;
+}
+
.font-mono {
font-family: JetBrains Mono, monospace;
}
diff --git a/layouts/partials/hamburger-menu.html b/layouts/partials/hamburger-menu.html
index e8b614b..d2a070f 100644
--- a/layouts/partials/hamburger-menu.html
+++ b/layouts/partials/hamburger-menu.html
@@ -39,7 +39,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-4 h-4 ml-1.5 align-middle" aria-hidden="true"></i>{{ else }}{{ i18n .Name }}{{ end }}
{{ if $isExternal }}<span class="sr-only">{{ i18n "opensInNewTab" }}</span>{{ end }}
</a>
{{ if .HasChildren }}
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 }}