diff --git a/index.md b/index.md index 1187c56..605a9de 100644 --- a/index.md +++ b/index.md @@ -5,7 +5,7 @@ description: My personal site's home page permalink: / --- -
+
LinkedIn badge @@ -29,7 +29,7 @@ permalink: / an aspiring engineer focused on open protocols, automation, and rapid prototyping. -
+
## a lil' :about me @@ -116,7 +116,7 @@ Outside of computing, I’m also a guitarist, competition aficionado, and lingua } -
+
### formative :experiences diff --git a/scripts/post-build.js b/scripts/post-build.js index cc30d61..022828c 100644 --- a/scripts/post-build.js +++ b/scripts/post-build.js @@ -8,21 +8,11 @@ const classMap = {}; let idx = 0; function shouldSkip(c) { + // Icons - MUST skip if (c.includes('fa-') || c.includes('icon-fa')) return true; if (c.startsWith('no-') || c.startsWith('not-')) return true; if (c.includes(':') || c.includes('[')) return true; - // if (c.startsWith('flex') || c.startsWith('items-') || c.startsWith('justify-') || c.startsWith('self-')) return true; - // if (c.startsWith('gap-') || c.startsWith('space-')) return true; - // if (c.match(/^[mp](?:-|$|x|y|t|b|l|r)/)) return true; - // if (c.startsWith('w-') || c.startsWith('h-')) return true; - // if (c.startsWith('max-') || c.startsWith('min-')) return true; - if (c.startsWith('border') || c.startsWith('rounded')) return true; - // if (c.startsWith('object-')) return true; - if (c.startsWith('font-')) return true; - // if (c.startsWith('text-xs') || c.startsWith('text-sm') || c.startsWith('text-')) return true; - // if (c.startsWith('inline') || c.startsWith('block')) return true; - // if (c.startsWith('bg-')) return true; - // if (c.startsWith('top-') || c.startsWith('bottom-') || c.startsWith('left-') || c.startsWith('right-')) return true; + return false; } @@ -35,7 +25,6 @@ function processFile(filePath) { // First pass: collect mappings matches.forEach(m => { const arr = m.slice(7, -1).split(' ').filter(c => c); - // if (arr.includes('nomin')) return; arr.forEach(c => { if (!shouldSkip(c) && !classMap[c]) classMap[c] = 'c' + idx++; }); @@ -44,7 +33,6 @@ function processFile(filePath) { // Second pass: replace in HTML matches.forEach(m => { const arr = m.slice(7, -1).split(' ').filter(c => c); - // if (arr.includes('nomin')) return; const newArr = arr.map(c => shouldSkip(c) ? c : classMap[c]); if (newArr.join(' ') !== arr.join(' ')) { html = html.replace(m, 'class="' + newArr.join(' ') + '"'); @@ -52,17 +40,38 @@ function processFile(filePath) { } }); - // Third pass: replace in CSS + // Third pass: replace in CSS (handle : and [) const styleMatches = html.match(/