Custom layout bypasses shortcode, hardcodes Vite dev server port 5173 #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Custom layouts/posts/single.html that checks for svekyll posts via frontmatter bypasses the shortcode sprinkyll injects, rendering hardcoded Vite dev server inline script instead.
Root Cause
The layout checks sprinkyll.type == svekyll frontmatter, renders inline script with port 5173, does NOT call .Content.
Impact
Fix
Layout should use hugo.IsProduction and render .Content (shortcode) in production.