All commands run in the root of your project.

Initialize a Git repository in your website’s directory:

git init

Either add Carbon theme as a git submodule:

git submodule add https://github.com/nik-rev/carbon.git themes/carbon

Or clone the theme:

git clone https://github.com/nik-rev/carbon.git themes/carbon

Required Configuration

  1. Enable the theme in Zola’s config.toml:
title = "My website"
theme = "carbon"
  1. Configure code block highlighting:
[markdown]
highlight_code = true
highlight_theme = "css"

For a headstart with a blog:

That’s it! All other things are the same as in the Zola documentation.