Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A simple one page Hugo theme for documentation
Kraiklyn is a single-page Hugo theme for documentation that renders all content onto one scrollable page with a sidebar navigation menu. It takes Markdown content with front-matter parameters like anchor and weight as input, and produces a mobile-friendly documentation site built by Hugo. This open-source theme is designed for projects that want a compact, easy-to-navigate reference without multi-page complexity.
Kraiklyn is a Hugo theme that consolidates an entire documentation set into a single page. The theme reads Markdown files from the site’s content directory, orders them by the weight front-matter value, and builds a sidebar where each item jumps to a section identified by the anchor front-matter parameter. It runs on the Hugo static site generator and is installable by cloning the repository into the themes folder.
anchor front-matter field to scroll to sections.layouts/partials/logo.html file in your site.[[menu.shortcuts]] entries in config.toml, and rename the section with the externalTitle parameter.sidebarColor in the [params] section to one of nine values: default, green, purple, pink, red, cyan, blue, grey, or orange.block creates note, tip, warn, or info callouts; readfile displays a file’s contents with an optional skip-to argument; anchor generates cross-reference links to other sections.customCss parameter in your config to load extra stylesheets from static/css.Kraiklyn is aimed at anyone who needs a lightweight, single-page documentation site. Technical writers can convert a set of Markdown files into a clean, categorized reference manual. Open-source maintainers can publish project docs with minimal setup, leveraging Hugo’s build pipeline. Developers creating internal wikis or runbooks can benefit from the sidebar navigation and shortcode callouts for warnings and tips.
anchor shortcode.block shortcode to highlight notes, tips, warnings, and info boxes throughout the page.readfile to pull in configuration snippets from separate files, skipping to a specific section when needed.Content is written as standard Hugo Markdown pages, each with front-matter that defines a unique anchor and a weight for ordering. The theme concatenates all pages onto a single HTML page, generating a sidebar from the anchor values. The anchor shortcode lets you link directly to any section by passing the file path, preserving cross-references that would normally be separate pages.
Clone the repository into your Hugo site’s themes directory and enable it in your site configuration. The theme works with standard Hugo content conventions, so no additional build tools are required.
Add sidebarColor to the [params] section of your config.toml. Available values are default, green, purple, pink, red, cyan, blue, grey, and orange.
Define entries under [[menu.shortcuts]] in your config file, each with a name and url. You can also set externalTitle to change the heading of that sidebar section.
Set the customCss parameter in your configuration to a list of stylesheet paths, such as customCss = ["css/custom.css"], and place the files in the static/css directory.
No — the theme is explicitly a one-page documentation theme. All content is rendered on a single page, which is ideal for concise docs but not for sites requiring separate URLs for each topic.