refactor: Mobile footer directly shows menu options
This commit is contained in:
parent
401f1ce11a
commit
1846441465
1 changed files with 151 additions and 21 deletions
12
layouts/_partials/icon.html
Normal file
12
layouts/_partials/icon.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{{- /*
|
||||
Render a Lucide icon from the local icons data file.
|
||||
Usage: {{ partial "icon" "house" }}
|
||||
Icons are fetched from data/lucideicons.json at build time
|
||||
*/ -}}
|
||||
{{- $iconName := . -}}
|
||||
{{- with index hugo.Data.lucideicons $iconName -}}
|
||||
{{- . | safeHTML -}}
|
||||
{{- else -}}
|
||||
{{- /* Fallback if icon not found */ -}}
|
||||
<svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" focusable="false" aria-hidden="true"><circle cx="12" cy="12" r="10"/></svg>
|
||||
{{- end -}}
|
||||
Loading…
Reference in a new issue