All checks were successful
Hugo Publish CI / build-and-deploy (push) Successful in 16s
1.2 KiB
1.2 KiB
Hugo Partials Structure
This site uses the hugo-coder theme with the hugo-cloak-email plugin.
Partial Directories
layouts/partials/
Standard Hugo partial override directory. Files here override theme partials when called via partial "name.html".
Used for:
cloakemail.html— Overrides hugo-cloak-email's default partialhead.html— Adds font preloading and AdSensefooter.html— Custom footer with[commit]placeholderhome/social.html— Integrates cloakemail for email obfuscationhome/avatar.html— Custom avatar rendering
layouts/_partials/
Non-standard directory used by hugo-coder theme. Files here override theme partials when called via partial "_partials/name.html".
Used for:
csp.html— Custom Content Security Policy with additional script sources
How Hugo Resolves Partials
Hugo's lookup order tries user overrides first, then falls back to theme files:
layouts/partials/orlayouts/_partials/(your overrides)themes/<theme>/layouts/partials/orthemes/<theme>/layouts/_partials/
Verification
Run hugo --templateMetrics to see which templates are actually being used and their execution counts.