Modern, responsive, batteries-included Hugo theme for creating beautiful static websites.
Demo → imfing.github.io/hextra
- Beautiful Design - Inspired by Nextra, Hextra utilizes Tailwind CSS to offer a modern design that makes your site look outstanding.
- Responsive Layout and Dark Mode - It looks great on all devices, from mobile to desktop. Dark mode is also supported to accommodate various lighting conditions.
- Fast and Lightweight - Powered by Hugo, a lightning-fast static-site generator housed in a single binary file, Hextra keeps its footprint minimal. No JavaScript or Node.js are needed to use it.
- Full-text Search - Built-in offline full-text search powered by FlexSearch, no extra configuration required.
- Battery-included - Markdown, syntax highlighting, LaTeX math formulae, diagrams and Shortcodes elements to enhance your content. Table of contents, breadcrumbs, pagination, sidebar navigation and more are all automatically generated.
- Multi-language and SEO Ready - Multi-language sites made easy with Hugo's multilingual mode. Out-of-the-box support is included for SEO tags, Open Graph, and Twitter Cards.
- Accessibility Support - Interactive components use semantic markup, keyboard-friendly behavior, and automated accessibility checks to keep the UI usable across common assistive workflows.
Using the Hextra Starter Template is the simplest method to bootstrap a new website with Hextra theme. Get started by clicking the "Use this template" button on the template repository page.
The template repository also includes a GitHub Actions workflow for deploying your website to GitHub Pages.
Refer to the documentation for more information.
params.page.history: true shows when, and by whom, each page was created. The creation data comes from git, through a small Go program (cmd/pagehistory, its own module, tested byte for byte against the shell script it replaces):
go run github.com/tannevaled/hextra/cmd/[email protected] > data/pagehistory.jsonIt needs the full git history. scripts/page-history.sh still works as a deprecated shim and will be removed in the next MINOR release. See the changelog.
components/version-select.html is the navbar version dropdown for docs published one build per version (mike-format versions.json). It handles hidden versions, aliases and multilingual fallbacks, so sites need no local copy:
menu:
main:
- name: Version
weight: 3
params: { type: partial, partial: components/version-select.html }Contributions are welcome. Check out the contributing guide to get started.
