All commands run in the root of your project.
Initialize a Git repository in your website’s directory:
Either add Carbon theme as a git submodule:
Or clone the theme:
Required Configuration
- Enable the theme in Zola’s
config.toml
:
= "My website"
= "carbon"
- Configure code block highlighting:
[]
= true
= "css"
For a headstart with a blog:
Create
content/_index.md
which is going to be front page of your site:the `+++` frontmatter which usually contains metadata is required, even though it's empty in this case Create
content/blog/_index.md
with just the frontmatter:Create your first blog post,
1984-01-01_my_first_post.md
:
That’s it! All other things are the same as in the Zola documentation.