st1020 / kita

Kita is a clean, elegant and simple blog theme for Zola.
https://st1020.github.io/kita/
MIT License
37 stars 11 forks source link

Error: Failed to serve the site | Failed to parse "/var/blog/templates/kita/content/shortcodes/index.md" #21

Open preis98 opened 4 days ago

preis98 commented 4 days ago

I followed your instructions but either you forgot a step or there is an error in the theme

Error: Error parsing templates from the /templates directory Error: Reason:

The URL the site will be built for

base_url = "https://example.com"

Whether to automatically compile all Sass files in the sass directory

compile_sass = false

Whether to build a search index to be used later on by a JavaScript library

build_search_index = true

[markdown]

Whether to do syntax highlighting

Theme can be customised by setting the highlight_theme variable to a theme supported by Zola

highlight_code = true

[extra]

Put all your custom variables here

theme = "kita"

Specs: Debian 12 Bookworm 4 Cores 8GB RAM

Command: cd /var/ mkdir blog zola init blog

git clone https://github.com/st1020/kita.git themes/kita zola serve --interface 0.0.0.0 --port 80 --base-url /

st1020 commented 3 days ago

This is not a problem with the theme, but a problem with your configuration. You should not set theme = "kita" in [extra] section, set it in root section instead.

Please refer: https://www.getzola.org/documentation/getting-started/configuration/