diff --git a/modules/blox/blox/faq/component.jsx b/modules/blox/blox/faq/component.jsx index ce239696..448c26cb 100644 --- a/modules/blox/blox/faq/component.jsx +++ b/modules/blox/blox/faq/component.jsx @@ -8,8 +8,14 @@ function renderInline(text) { return String(text) .replace(/\*\*(.*?)\*\*/g, "$1") .replace(/\*(.*?)\*/g, "$1") - .replace(/`(.*?)`/g, '$1') - .replace(/\[([^\]]+)\]\(([^)]+)\)/g, '$1'); + .replace( + /`(.*?)`/g, + '$1', + ) + .replace( + /\[([^\]]+)\]\(([^)]+)\)/g, + '$1', + ); } function renderRich(text) { @@ -24,7 +30,7 @@ function renderRich(text) { function FaqItem({item, isOpen, onToggle}) { const question = item.question ?? item.title ?? ""; - const answer = item.answer ?? item.text ?? ""; + const answer = item.answer ?? item.text ?? ""; return (
@@ -49,9 +55,7 @@ function FaqItem({item, isOpen, onToggle}) { {/* CSS grid trick: grid-rows transition from 0fr → 1fr animates from 0 height to natural height */} -
+
{
{(title || subtitle) && (
- {subtitle && ( -

- {subtitle} -

- )} + {subtitle &&

{subtitle}

} {title && (

{ )} {text && ( -
+
)} {items.length > 0 && (
{items.map((item, i) => ( - setOpenIdx(openIdx === i ? null : i)} - /> + setOpenIdx(openIdx === i ? null : i)} /> ))}
)} diff --git a/scripts/check-template-deps.mjs b/scripts/check-template-deps.mjs index 63a79221..3dd2b935 100755 --- a/scripts/check-template-deps.mjs +++ b/scripts/check-template-deps.mjs @@ -1,6 +1,6 @@ #!/usr/bin/env node -import { readdirSync, readFileSync, statSync } from "node:fs"; -import { join, resolve } from "node:path"; +import {readdirSync, readFileSync, statSync} from "node:fs"; +import {join, resolve} from "node:path"; const REQUIRED = ["tailwindcss", "@tailwindcss/cli"]; const TEMPLATES_DIR = resolve(process.argv[2] ?? "templates"); @@ -22,7 +22,7 @@ for (const name of readdirSync(TEMPLATES_DIR).sort()) { continue; } - const deps = { ...pkg.dependencies, ...pkg.devDependencies }; + const deps = {...pkg.dependencies, ...pkg.devDependencies}; const missing = REQUIRED.filter((dep) => !(dep in deps)); if (missing.length) { failures.push(`${name}: missing ${missing.join(", ")}`); @@ -34,9 +34,7 @@ for (const name of readdirSync(TEMPLATES_DIR).sort()) { if (failures.length) { console.error("✗ Template dependency audit failed:\n"); for (const f of failures) console.error(` ${f}`); - console.error( - `\nHugo >= 0.161.0 requires the npm @tailwindcss/cli package — the standalone tailwindcss binary is no longer accepted.`, - ); + console.error(`\nHugo >= 0.161.0 requires the npm @tailwindcss/cli package — the standalone tailwindcss binary is no longer accepted.`); process.exit(1); } diff --git a/templates/academic-cv/.devcontainer/devcontainer.json b/templates/academic-cv/.devcontainer/devcontainer.json index d329dfef..be270cd7 100644 --- a/templates/academic-cv/.devcontainer/devcontainer.json +++ b/templates/academic-cv/.devcontainer/devcontainer.json @@ -5,18 +5,12 @@ "postCreateCommand": "pnpm --version && hugo version", "customizations": { "vscode": { - "extensions": [ - "ownable.ownable" - ] + "extensions": ["ownable.ownable"] } }, - "mounts": [ - "source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume" - ], + "mounts": ["source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume"], "remoteUser": "vscode", - "forwardPorts": [ - 1313 - ], + "forwardPorts": [1313], "portsAttributes": { "1313": { "label": "Hugo Server" diff --git a/templates/data-science-blog/.devcontainer/devcontainer.json b/templates/data-science-blog/.devcontainer/devcontainer.json index d329dfef..be270cd7 100644 --- a/templates/data-science-blog/.devcontainer/devcontainer.json +++ b/templates/data-science-blog/.devcontainer/devcontainer.json @@ -5,18 +5,12 @@ "postCreateCommand": "pnpm --version && hugo version", "customizations": { "vscode": { - "extensions": [ - "ownable.ownable" - ] + "extensions": ["ownable.ownable"] } }, - "mounts": [ - "source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume" - ], + "mounts": ["source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume"], "remoteUser": "vscode", - "forwardPorts": [ - 1313 - ], + "forwardPorts": [1313], "portsAttributes": { "1313": { "label": "Hugo Server" diff --git a/templates/dev-portfolio/.devcontainer/devcontainer.json b/templates/dev-portfolio/.devcontainer/devcontainer.json index d329dfef..be270cd7 100644 --- a/templates/dev-portfolio/.devcontainer/devcontainer.json +++ b/templates/dev-portfolio/.devcontainer/devcontainer.json @@ -5,18 +5,12 @@ "postCreateCommand": "pnpm --version && hugo version", "customizations": { "vscode": { - "extensions": [ - "ownable.ownable" - ] + "extensions": ["ownable.ownable"] } }, - "mounts": [ - "source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume" - ], + "mounts": ["source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume"], "remoteUser": "vscode", - "forwardPorts": [ - 1313 - ], + "forwardPorts": [1313], "portsAttributes": { "1313": { "label": "Hugo Server" diff --git a/templates/documentation/.devcontainer/devcontainer.json b/templates/documentation/.devcontainer/devcontainer.json index d329dfef..be270cd7 100644 --- a/templates/documentation/.devcontainer/devcontainer.json +++ b/templates/documentation/.devcontainer/devcontainer.json @@ -5,18 +5,12 @@ "postCreateCommand": "pnpm --version && hugo version", "customizations": { "vscode": { - "extensions": [ - "ownable.ownable" - ] + "extensions": ["ownable.ownable"] } }, - "mounts": [ - "source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume" - ], + "mounts": ["source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume"], "remoteUser": "vscode", - "forwardPorts": [ - 1313 - ], + "forwardPorts": [1313], "portsAttributes": { "1313": { "label": "Hugo Server" diff --git a/templates/link-in-bio/.devcontainer/devcontainer.json b/templates/link-in-bio/.devcontainer/devcontainer.json index d329dfef..be270cd7 100644 --- a/templates/link-in-bio/.devcontainer/devcontainer.json +++ b/templates/link-in-bio/.devcontainer/devcontainer.json @@ -5,18 +5,12 @@ "postCreateCommand": "pnpm --version && hugo version", "customizations": { "vscode": { - "extensions": [ - "ownable.ownable" - ] + "extensions": ["ownable.ownable"] } }, - "mounts": [ - "source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume" - ], + "mounts": ["source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume"], "remoteUser": "vscode", - "forwardPorts": [ - 1313 - ], + "forwardPorts": [1313], "portsAttributes": { "1313": { "label": "Hugo Server" diff --git a/templates/markdown-slides/.devcontainer/devcontainer.json b/templates/markdown-slides/.devcontainer/devcontainer.json index d329dfef..be270cd7 100644 --- a/templates/markdown-slides/.devcontainer/devcontainer.json +++ b/templates/markdown-slides/.devcontainer/devcontainer.json @@ -5,18 +5,12 @@ "postCreateCommand": "pnpm --version && hugo version", "customizations": { "vscode": { - "extensions": [ - "ownable.ownable" - ] + "extensions": ["ownable.ownable"] } }, - "mounts": [ - "source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume" - ], + "mounts": ["source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume"], "remoteUser": "vscode", - "forwardPorts": [ - 1313 - ], + "forwardPorts": [1313], "portsAttributes": { "1313": { "label": "Hugo Server" diff --git a/templates/resume/.devcontainer/devcontainer.json b/templates/resume/.devcontainer/devcontainer.json index d329dfef..be270cd7 100644 --- a/templates/resume/.devcontainer/devcontainer.json +++ b/templates/resume/.devcontainer/devcontainer.json @@ -5,18 +5,12 @@ "postCreateCommand": "pnpm --version && hugo version", "customizations": { "vscode": { - "extensions": [ - "ownable.ownable" - ] + "extensions": ["ownable.ownable"] } }, - "mounts": [ - "source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume" - ], + "mounts": ["source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume"], "remoteUser": "vscode", - "forwardPorts": [ - 1313 - ], + "forwardPorts": [1313], "portsAttributes": { "1313": { "label": "Hugo Server" diff --git a/templates/startup-landing-page/.devcontainer/devcontainer.json b/templates/startup-landing-page/.devcontainer/devcontainer.json index d329dfef..be270cd7 100644 --- a/templates/startup-landing-page/.devcontainer/devcontainer.json +++ b/templates/startup-landing-page/.devcontainer/devcontainer.json @@ -5,18 +5,12 @@ "postCreateCommand": "pnpm --version && hugo version", "customizations": { "vscode": { - "extensions": [ - "ownable.ownable" - ] + "extensions": ["ownable.ownable"] } }, - "mounts": [ - "source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume" - ], + "mounts": ["source=pnpm-store,target=/home/vscode/.local/share/pnpm,type=volume"], "remoteUser": "vscode", - "forwardPorts": [ - 1313 - ], + "forwardPorts": [1313], "portsAttributes": { "1313": { "label": "Hugo Server"