Configuration

Last Edit: 2024.03.13

Shock makes use of Hugo’s config directory.

hugo.toml

Refer to the Hugo configuration documentation for project setup. For a working example, refer to Shock’s exampleSite config/hugo.toml file.

params.toml

Bootstrap

[bootstrap]TypeDefaultDescription
javascriptbooltrueToggle Bootstrap JavaScript.

PostCSS

[postCSS]TypeDefaultDescription
stateboolfalseToggle PostCSS for CSS removal.
[header]TypeDefaultDescription
statebooltrueToggle header state.
brandLogoboolfalseToggle header brand logo.
brandTextbooltrueToggle header brand text.
fixedTopbooltrueToggle header stick-state.
[banner]TypeDefaultDescription
homebooltrueToggle banner on home page.
sectionbooltrueToggle banner on section pages.
singleboolfalseToggle banner on single pages.
[sidebar]TypeDefaultDescription
homeboolfalseToggle sidebar on home page.
sectionboolfalseToggle sidebar on section pages.
singleboolfalseToggle sidebar on single pages.
tableofcontentsIDstringsidebar-tableofcontentsID to assign table of contents wrapper.
[breadcrumb]TypeDefaultDescription
homeboolfalseShould breadcrumb include home page link.
homeIconstring'folder-root'Icon to use for home page link, set to '' to use title instead.
sectionboolfalseToggle breadcrumb on section pages.
singleboolfalseToggle breadcrumb on single pages.

Heading

[heading]TypeDefaultDescription
homeboolfalseToggle heading on home page.
sectionboolfalseToggle heading on section pages.
singlebooltrueToggle heading on single pages.
[footer]TypeDefaultDescription
statebooltrueToggle footer state.
stickbooltrueIf footer should stick to the bottom of the page when there is not enough content to fill the page.
[copyright]TypeDefaultDescription
namestring''Copyright name, will override .Site.Copyright.
linkstring''Link to apply to copyright name.
yearstring''Copyright start year.
[logo]TypeDefaultDescription
mainPNGstring'img/logo/logo.png'Path to primary logo image.
brandPNGstring'img/logo/brand.png'Path to logo image used in header/nav.

Manifest

[manifest]TypeDefaultDescription
statebooltrueToggle manifest state.
brandPNGstring'#333'Set manifest background color.