A theme for Spine websites based on Hugo engine.
It provides:
- reusable layouts and partials;
- custom shortcodes for documentation-heavy content;
- shared styling and UI components used across Spine web projects.
- Go
1.12or newer. - Hugo Extended in version
v0.150.0or higher.
-
Initialize your Hugo website as the Hugo Module:
hugo mod init github.com/SpineEventEngine/<repo-name>
-
Add this theme import to your
hugo.tomlconfiguration file:[module] [[module.imports]] path = 'github.com/SpineEventEngine/site-commons'
-
Get theme updates:
hugo mod get -u github.com/SpineEventEngine/site-commons
-
Commit and push changes from
go.modandgo.sumfiles.
Use the theme as the base for the site templates and content rendering.
For a guide with a complete list of theme components, see the COMPONENTS.md.
When editing this theme:
- keep components and shortcodes reusable;
- update
COMPONENTS.mdwhen adding or changing components.