Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A minimal blog theme built for Hugo
Codex is a minimal blog theme for the Hugo static site generator that produces a static blog with an about page, tag taxonomy, and KaTeX math rendering from markdown content.
Codex is a free blog theme created by Jake Wiesler and published on GitHub as jakewies/hugo-theme-codex. It takes Hugo site content — markdown files with frontmatter — and renders a static website with two content types: an about page and a blog. The theme requires the extended version of Hugo (version 82 or newer) because it compiles Sass/SCSS, and it integrates Google Analytics, Disqus, and internationalization out of the box.
The theme's home page is configured through content/_index.md, where you can set heading, subheading, and handle. It uses a blog archetype at content/blog so new posts start with a set frontmatter template.
_index.md frontmatter./tags/:tag-name.math: true in frontmatter, rendering LaTeX-style equations.assets/scss/custom.scss or override variables like $primary in assets/scss/overrides.scss.[params] section.i18n/ directory.iconOrder; you can add more by placing SVGs in static/svg/.toc: true; optionally include the page title via showPageTitleInTOC.layouts/index.html.config.toml, and use hugo new blog/post.md to start writing.math: true in a post's frontmatter and write LaTeX-style equations that render as KaTeX.custom.scss, or replace the home page layout entirely.git submodule add https://github.com/jakewies/hugo-theme-codex.git themes/hugo-theme-codex.config.toml and remove the themesDir line (needed only for the demo).content/_index.md with heading, subheading, and handle frontmatter.hugo new blog/:post-name.md, which applies the theme's archetype.hugo server -D to preview locally; the site will be blank until you add content.content/ is empty.Codex is free and available on GitHub, with contributions from 23 contributors. There are no paid tiers to purchase — you clone or submodule the repository and customize it.
Yes. Set math: true in a post's frontmatter and the theme will render LaTeX-style equations using KaTeX. This is available on a per-post basis.
Codex requires Hugo version 82 or above, and you need the extended build because the theme relies on Sass/SCSS compilation. If you use Homebrew on macOS, the extended version is the default.
The theme includes i18n translation files for English and German. You can add support for other languages by copying i18n/en.toml to a new .toml file named after your language in your project's i18n/ directory.
Create an assets/scss/overrides.scss file in your project and set variables such as $primary. You can also add a custom assets/scss/custom.scss file that supports Hugo template variables.
An empty content/ directory is the usual cause. Create content/_index.md for the home page and place blog posts under content/blog. Without any content, the theme has nothing to render.
