zola/docs/content/themes/slim/index.md
Vincent Prouillet 0113a73551
Update themes gallery (#2180)
Co-authored-by: GitHub Action <action@github.com>
2023-04-17 16:59:14 +02:00

1.8 KiB

+++ title = "Slim" description = "Slim is a minimal, clean and beautiful theme for Zola." template = "theme.html" date = 2023-04-16T21:40:29+02:00

[extra] created = 2023-04-16T21:40:29+02:00 updated = 2023-04-16T21:40:29+02:00 repository = "https://github.com/jameshclrk/zola-slim.git" homepage = "https://github.com/jameshclrk/zola-slim" minimum_version = "0.8.0" license = "MIT" demo = "https://zola-slim.netlify.com"

[extra.author] name = "James Clark" homepage = "https://jamesclark.dev" +++

Slim

Slim is a minimal, clean and beautiful theme for Zola.

This theme was ported to Zola, the original is available at zhe/hugo-theme-slim. It is excellent, thank you zhe!

Slim screenshot

Demo.

Installation

cd themes
git clone https://github.com/jameshclrk/zola-slim slim

See the official docs for more information.

Configuration

Slim supports a tags taxonomy by default. This can be enabled by setting it in your config.toml:

taxonomies = [
    {name = "tags", paginate_by = 5, rss = true}
]

There are a couple of extra options supported:

[extra]
# Show a summary of a post in a list
slim_summary = false
# Show the content of a post in a list
slim_content = false
# Links to show at the top of the menu
slim_menu = [
    {url = "$BASE_URL/tags", name = "Tags"}
]
# Links to show at the bottom of the menu
slim_social = [
    {url = "https://github.com/jameshclrk", name = "Github"}
]

License

Open sourced under MIT license.