Welcome to splitflap — a Hugo theme centered on a split-flap display landing page, the Ayu color system, and the Monaspace typeface family.
This post walks through the key moving parts so you can get your own site up and running quickly.
The split-flap board#
The landing page renders an animated split-flap display. Messages are configured in hugo.toml under params.board.messages:
[params.board]
messages = [
['', '', 'HELLO WORLD', '', 'MY SITE', '', ''],
['', '', 'WELCOME', '', '', '', '']
]
Each message is an array of up to 7 lines. Each line holds at most 20 characters. Use only: A-Z 0-9 . , - ! ? ' / : and space — all uppercase.
Color themes#
Three themes are available: Light, Mirage, and Dark. The switcher in the header lets visitors change themes at any time; the choice is persisted in localStorage.
Set the default theme for first-time visitors in hugo.toml:
[params]
defaultTheme = "light" # light | mirage | dark
