salif/trankwilo
1
2
Fork
You've already forked trankwilo
0
A simplicity and clean documentation theme. Fork of the Goyo theme for Zola. https://salif.github.io/zola-themes-collection/demo/trankwilo/
  • CSS 44.5%
  • HTML 42.8%
  • JavaScript 11%
  • Just 1.7%
Find a file
2025年10月19日 02:16:26 +02:00
.github Improve images and paths 2025年10月07日 19:12:03 +03:00
content Fix bugs 2025年10月19日 03:14:43 +03:00
src Use npm 2025年10月08日 23:46:36 +03:00
static Fix bugs 2025年10月19日 03:14:43 +03:00
templates Fix bugs 2025年10月19日 03:14:43 +03:00
.gitignore Use npm 2025年10月08日 23:46:36 +03:00
config.toml Improve scripts and variables 2025年10月19日 02:16:45 +03:00
CONTRIBUTING.md Add CONTRIBUTING.md file 2025年08月02日 23:26:12 +09:00
justfile Improve scripts and variables 2025年10月19日 02:16:45 +03:00
LICENSE Rename to Trankwilo 2025年10月05日 21:50:52 +03:00
package-lock.json Use npm 2025年10月08日 23:46:36 +03:00
package.json Use npm 2025年10月08日 23:46:36 +03:00
README.md Fix bugs 2025年10月19日 03:14:43 +03:00
screenshot.png Change logo image 2025年10月09日 19:41:39 +03:00
theme.toml Rename to Trankwilo 2025年10月05日 21:50:52 +03:00

Trankwilo is a Zola theme that aims for simplicity and clean documentation.

Features

  • Dark & Light Themes with Brightness Settings
  • Beautiful Landing Page
  • Responsive Design
  • SEO-Friendly
  • Multi-Language Support
  • Auto-Generated Sidebar & Custom Nav
  • Built-in resources (FontAwesome, Mermaid.js)
  • Comments (Giscus, Utterances)
  • Various shortcodes (Mermaid, Asciinema, Katex, Alert, Badge, etc.)
  • Customization

Installation

Make your zola app

zola init yoursite
cd yoursite

Add the theme as a git submodule:

git init # if your project is a git repository already, ignore this command
git submodule add -b trankwilo https://codeberg.org/salif/trankwilo themes/trankwilo

Or clone the theme into your themes directory:

git clone https://codeberg.org/salif/trankwilo themes/trankwilo

Then set trankwilo as your theme in config.toml.

title = "Your Docs"
theme = "trankwilo"

Configuration

Add extra field in config.toml

[extra]
# Logo Configuration
logo_text = "Trankwilo" # Text to display if no logo image
logo_image_path = "images/trankwilo.webp" # Path to logo image
logo_image_padding = "5px" # Padding for logo image (optional)
# Footer Configuration
footer_html = """
Powered by <a href="https://www.getzola.org">Zola</a> and <a href="https://codeberg.org/salif/trankwilo">Trankwilo</a>
"""
# Thumbnail Configuration
default_thumbnail = "images/default_thumbnail.webp" # Default thumbnail image path
# Twitter Configuration
twitter_site = "@username" # Site Twitter handle
twitter_creator = "@username" # Creator Twitter handle
# Color Configuration
brightness = "normal" # Options: "darker", "normal", "lighter"
# Google Tag Configuration
gtag = "" # Google Analytics tracking ID
# Sidebar Configuration
sidebar_expand_depth = 1 # Sidebar expansion depth (max 5)
# Language Aliases Configuration
# Custom display names for languages in the language selector
# If not defined, language codes will be displayed
lang_aliases = { en = "English", ko = "한국어" }
# Navigation Configuration
nav = [
 { name = "Documents", url = "/introduction", type = "url", icon = "fa-solid fa-book" },
 { name = "Source", url = "https://codeberg.org/salif/trankwilo", type = "url", icon = "fa-brands fa-git-alt" },
 { name = "Links", type = "dropdown", icon = "fa-solid fa-link", members = [
 { name = "Creator Blog", url = "https://www.hahwul.com", type = "url", icon = "fa-solid fa-fire-flame-curved" }
 ] }
]
# Navigation Configuration (i18n / optional)
# `nav_{lang}`: Language-specific navigation menu (e.g., `nav_ko` for Korean).
# If defined, it will be used instead of the default `nav` for that language.
nav_ko = [
 { name = "문서", url = "/ko/introduction", type = "url", icon = "fa-solid fa-book" },
 { name = "소스", url = "https://codeberg.org/salif/trankwilo", type = "url", icon = "fa-brands fa-git-alt" },
 { name = "링크", type = "dropdown", icon = "fa-solid fa-link", members = [
 { name = "제작자 블로그", url = "https://www.hahwul.com", type = "url", icon = "fa-solid fa-fire-flame-curved" },
 ] },
]
# Theme Toggle Configuration
disable_theme_toggle = false # Hide theme toggle button (true to disable)
# Sidebar Visibility Configuration
disable_root_sidebar_hide = false # Prevent hiding sidebar on root page
# Edit URL Configuration
edit_url = "" # Base URL for editing pages (e.g., "https://github.com/user/repo/edit/main")
# Comments Configuration
[extra.comments]
enabled = false # Enable comments
system = "" # Comment system (e.g., "giscus")
repo = "" # Repository for comments (e.g., "salif/trankwilo")
repo_id = "" # Repository ID (e.g., "R_kgDOXXXXXXX")
category = "" # Comment category (e.g., "General")
category_id = "" # Category ID (e.g., "DIC_kwDOXXXXXXXXXX")

More information? Configuration - Trankwilo Documents and Creating Landing - Trankwilo Documents

Run

zola serve
# and open http://127.0.0.1:1111 in your browser.

Other Zola themes

Trankwilo is based on Goyo and is one of several Zola themes I maintain. Other themes include:

  • Linkita – Multilingual and SEO friendly blog theme.
  • Tukan – Inspired from Toucan theme.