1 minute reading time
Updated 01 Feb 2024
Halve-Z is a retro two-column theme for Zola. It features search, taxonomies, automatic color schemes, media shortcodes, project cards, and a comment system (Cactus/Giscus).
Available (extra
) options:
subtitle
image
csp_img
disable_comments
disable_toc
music
h1
headers are reserved for page title (left/top block) and subtitle (optional, right/bottom block).
In addition to default variables, a page can have an image, a subtitle, a category, a song, CSP strings, and multiple tags.
+++
title = "Example"
date = 2009-09-09
[taxonomies]
categories = ["general"]
tags = ["tag"]
[extra]
subtitle = "Example subtitle"
disable_comments = true
disable_toc = true
image = "https://example.com/image.png"
csp_img = ["example.com/", "foo.org/example"]
music = ["Michael Pitt", "Death to Birth"]
+++
music
variable takes an array that includes an artist and a track name. If LASTFM_KEY
environment variable is present, names are autocorrected and linked to the Last.fm website.
Set theme
to halve-z
in your project's config.toml
and adjust options according to the example below:
###
= "https://halve-z.netlify.app"
= "Halve-Z Zola theme"
= "Two-column retro theme for Zola"
= "en"
= "charlesrocket"
#theme = "halve-z"
= true
= true
= true
= true
= true
= [
{ = "categories", = true },
{ = "tags", = true },
]
[]
= true
= true
= false
= true
= "elasticlunr_json"
[]
= true
= "css"
= [
{ = "OneHalfDark", = "syntax-theme-dark.css" },
{ = "OneHalfLight", = "syntax-theme-light.css" },
]
= false
= true
[]
= "safe"
= "safe"
= "safe"
[]
= "en_US"
= "icon-192x192.png"
= "manifest.json"
= true
= true
= true
[]
= false
= false
[]
= "Halve-Z"
= "Zola theme"
= false
= { = false, = "100", = "100" }
= true
[]
= "c1tyh4ll.png" #https://failsafe.monster/c1tyh4ll.png
= "bk-prk.png" #https://failsafe.monster/bk-prk.jpg
= "bk-prk.png" #https://failsafe.monster/bk-prk.jpg
= [
{ = "media", = "https://raw.githubusercontent.com/bearcott/8bit-art/master/cities/urban.gif" },
]
[]
= true
= "Posts"
= [
{ = "Code", = "/projects/" },
]
[]
= true
= true
= true
= true
= true
= [
{ = "posts", = "/posts/" },
]
[]
= "user_email"
= "server/@user_name"
= "user_name"
= "user_name"
= "username"
= "user_name"
= "user_name"
= "user_name"
= "12345/user_name"
= "user_name"
= "user_name"
= "user_name"
= "user_name"
= "user_name"
#flickr = "user_name"
= "user_name"
= "user_name"
[]
= "none"
[]
= "site_name"
= 10
= true
= 0
[]
= "user_name/repo"
= ""
= "Comments"
= ""
= "pathname"
= "1"
= "1"
= "en"