Name and icon code blocks by real filename across the site

This commit is contained in:
Djeex
2026-08-31 22:12:47 +02:00
parent baf3590186
commit 6696ed9b23
55 changed files with 277 additions and 252 deletions
+5 -2
View File
@@ -31,11 +31,14 @@ export default defineAppConfig({
base: 'bg-[rgba(12,13,12,0.8)] border-[#121110]',
},
},
// Custom code-block header icons, keyed by lowercase `[label]` text
// (see ```text [Arborescence] / ```text [Directory tree] blocks).
// Custom code-block header icons. Full labels (```text [Arborescence])
// match by exact lowercase filename; bare extensions (no filename
// match) fall back to matching any ```lang [*.ext] label.
codeIcon: {
'arborescence': 'i-lucide-folder-tree',
'directory tree': 'i-lucide-folder-tree',
'ini': 'i-lucide-settings',
'conf': 'i-lucide-settings',
},
pre: {
slots: {