Fork of tabi https://github.com/welpo/tabi but without the bloat
Find a file
2023-09-17 13:36:18 +02:00
.githooks 🔍️ chore(SEO): update social media cards 2023-09-12 21:09:36 +02:00
.github 📝 chore(issue templates): include label in bug reports 2023-09-16 02:10:28 +02:00
content 🔍️ fix(SEO): set proper social image cards 2023-09-15 19:49:08 +02:00
i18n feat(templates): introduce info-page template (#147) 2023-09-13 01:38:25 +02:00
sass feat(alias): style redirect page (#156) 2023-09-15 01:48:15 +02:00
static 🍱 feat(social-icons): add X icon 2023-09-17 01:29:50 +02:00
templates feat(social-media-cards): support relative paths (#163) 2023-09-17 13:36:18 +02:00
.gitignore 🙈 chore: add gitignore 2023-02-03 02:55:34 +09:00
CODE_OF_CONDUCT.md 📝 docs: add code of conduct 2023-02-22 02:29:54 +01:00
config.toml feat(templates): introduce info-page template (#147) 2023-09-13 01:38:25 +02:00
CONTRIBUTING.md 🌐 feat(i18n): overhaul translation system & add languages (#145) 2023-09-12 18:58:58 +02:00
LICENSE 📄 docs: add license 2023-02-04 13:10:24 +01:00
light_dark_screenshot.png 📝 chore: update screenshots 2023-09-13 01:57:21 +02:00
lighthouse_score.png 📝 docs: mention perfect Lighthouse score 2023-04-16 03:40:52 +02:00
README.md feat(header): add img_alt attribute for customisable alt text (#153) 2023-09-13 19:49:09 +02:00
screenshot.png 📝 chore: invert screenshot 2023-09-16 15:09:23 +02:00
theme.toml feat(templates): introduce info-page template (#147) 2023-09-13 01:38:25 +02:00

tabi

A fast, lightweight, and modern Zola theme with multi-language support. It aims to be a personal page and home to blog posts.

See a live preview (and the theme's documentation) here.

tabi (旅): Journey.

tabi

tabi has a perfect score on Google's Lighthouse audit:

lighthouse

Features

Quick start

Once you have installed Zola 0.17.0 or newer:

git clone https://github.com/welpo/tabi.git
cd tabi
zola serve

Open http://127.0.0.1:1111/ in the browser.

Installation

To add tabi to you existing Zola site:

  1. Initialize a Git repository in your project directory (if you haven't already):
git init
  1. Add the theme as a git submodule:
git submodule add https://github.com/welpo/tabi.git themes/tabi

Or clone the theme into your themes directory:

git clone https://github.com/welpo/tabi.git themes/tabi

Required configuration

  1. Enable the theme in your config.toml:
theme = "tabi"
  1. Set a title in your config.toml:
title = "Your Site Title"
  1. Create a content/_index.md file with the following content:
+++
title = "Home"
paginate_by = 5 # Set the number of posts per page
template = "index.html"
+++

If you want to serve your blog posts from a different path, such as blog/, add a section_path in the [extra] section of content/_index.md (this file will need pagination):

[extra]
section_path = "blog/_index.md"
  1. If you want an introduction section (see screenshot above), add these lines to content/_index.md:
[extra]
header = {title = "Hello! I'm tabi~", img = "img/main.webp", img_alt = "Your Name" }

The content outside the front matter will be rendered between the header title and the posts listing. In the screenshot above, it's the text that reads "tabi is a fast, lightweight, and modern Zola theme…".

  1. If you want a multilingual site, you will need to set up each language. In config.toml, set the title and taxonomies for each language, like:
[languages.es]
title = "~/tabi"
taxonomies = [{name = "tags", feed = true}]

You will need an _index.{language_code}.md per language for each section (e.g. /blog or /projects) that you want to enable in that language.

The same is true for individual posts, which should have the exact same name as the default language, with an extra .{code} before the extension (e.g. the Spanish version of security.md would be security.es.md).

This configuration allows the language switcher to take the user to the translation of the current URL. If a translation doesn't exist, the 404 page will be displayed, with an explanation in each language set in the config.

To learn more about multilingual support, see the Frequently Asked Questions.

Inspiration

This theme was inspired by:

Contributing

Please do! We appreciate bug reports, improvements to translations or documentation (however minor), feature requests…

Take a look at the Contributing Guidelines to learn more.

License

The code is available under the MIT license.