
* feat: release Hextra v0.11 with new features and improvements - Updated banner key to 'announcement-v0.11' with a new message. - Added new padding option 'hx:px-8' in hugo_stats.json. - Introduced new blog post for Hextra v0.11 detailing UX enhancements, new components, and stability fixes. - Added translations for the new blog post in French, Japanese, and Simplified Chinese. - Updated getting started documentation to include instructions for using the development branch. - Removed outdated banner HTML for v0.10. * feat: update language banners for Hextra v0.11 release - Added localized banner messages for Persian, Japanese, and Simplified Chinese. - Updated the main announcement message format in the configuration file. * Update exampleSite/content/blog/v0.11.md Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com> * Update exampleSite/content/blog/v0.11.md Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com> * Update blog post for Hextra v0.11 release - Refined upgrade guide and removed unnecessary breaking change note. - Enhanced descriptions for new features including the top banner, callouts, and analytics configuration. - Improved clarity in code examples and added links to documentation for new components. - Updated navbar enhancements and breadcrumbs enablement instructions. - Fixed formatting inconsistencies and improved overall readability. * Add blog post for Hextra v0.11 in Persian, Japanese, and Simplified Chinese - Introduced new features including a site-wide top banner, redesigned callouts, and analytics support for Umami and Matomo. - Enhanced navigation with icon support and improved layout. - Added Asciinema shortcode for terminal recordings and external link decoration options. - Updated upgrade guide and documentation for new components. - Included stability fixes and quality of life improvements. --------- Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com>
5.2 KiB
title, weight, tags, next, prev
title | weight | tags | next | prev | ||
---|---|---|---|---|---|---|
Getting Started | 1 |
|
/docs/guide | /docs |
Quick Start from Template
{{< icon "github" >}} imfing/hextra-starter-template
You could quickly get started by using the above template repository.

We have provided a GitHub Actions workflow which can help automatically build and deploy your site to GitHub Pages, and host it for free. For more options, check out Deploy Site.
Start as New Project
There are two main ways to add the Hextra theme to your Hugo project:
-
Hugo Modules (Recommended): The simplest and recommended method. Hugo modules let you pull in the theme directly from its online source. Theme is downloaded automatically and managed by Hugo.
-
Git Submodule: Alternatively, add Hextra as a Git Submodule. The theme is downloaded by Git and stored in your project's
themes
folder.
Setup Hextra as Hugo module
Prerequisites
Before starting, you need to have the following software installed:
Steps
{{% steps %}}
Initialize a new Hugo site
hugo new site my-site --format=yaml
Configure Hextra theme via module
# initialize hugo module
cd my-site
hugo mod init github.com/username/my-site
# add Hextra theme
hugo mod get github.com/imfing/hextra
Configure hugo.yaml
to use Hextra theme by adding the following:
module:
imports:
- path: github.com/imfing/hextra
Create your first content pages
Create new content page for the home page and the documentation page:
hugo new content/_index.md
hugo new content/docs/_index.md
Preview the site locally
hugo server --buildDrafts --disableFastRender
Voila, your new site preview is available at http://localhost:1313/
.
{{% /steps %}}
{{% details title="How to update theme?" %}}
To update all Hugo modules in your project to their latest versions, run the following command:
hugo mod get -u
To update Hextra to the latest released version, run the following command:
hugo mod get -u github.com/imfing/hextra
If you want to try the most recent changes before the next release, update the module to the development branch directly (⚠️ may contain unstable/breaking changes):
hugo mod get -u github.com/imfing/hextra@main
See Hugo Modules for more details.
{{% /details %}}
Setup Hextra as Git submodule
Prerequisites
Before starting, you need to have the following software installed:
Steps
{{% steps %}}
Initialize a new Hugo site
hugo new site my-site --format=yaml
Add Hextra theme as a Git submodule
Switch to the site directory and initialize a new Git repository:
cd my-site
git init
Then, add Hextra theme as a Git submodule:
git submodule add https://github.com/imfing/hextra.git themes/hextra
Configure hugo.yaml
to use Hextra theme by adding the following:
theme: hextra
Create your first content pages
Create new content page for the home page and the documentation page:
hugo new content/_index.md
hugo new content/docs/_index.md
Preview the site locally
hugo server --buildDrafts --disableFastRender
Your new site preview is available at http://localhost:1313/
.
{{% /steps %}}
When using CI/CD for Hugo website deployment, it's essential to ensure that the following command is executed before running the hugo
command.
git submodule update --init
Failure to run this command results in the theme folder not being populated with Hextra theme files, leading to a build failure.
{{% details title="How to update theme?" %}}
To update all submodules in your repository to their latest commits, run the following command:
git submodule update --remote
To update Hextra to the latest commit, run the following command:
git submodule update --remote themes/hextra
See Git submodules for more details.
{{% /details %}}
Next
Explore the following sections to start adding more contents:
{{< cards >}} {{< card link="../guide/organize-files" title="Organize Files" icon="document-duplicate" >}} {{< card link="../guide/configuration" title="Configuration" icon="adjustments" >}} {{< card link="../guide/markdown" title="Markdown" icon="markdown" >}} {{< /cards >}}