# tabi
A fast, lightweight, and modern [Zola ](https://getzola.org ) 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 ](https://welpo.github.io/tabi ).
> tabi (旅): Journey.

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

## Features
🌐 feat(i18n): overhaul translation system & add languages (#145)
Revamp the existing translation system, simplifying
management and adding several new languages. The new system reads from
TOML files in the `/i18n` directory and improves template structures.
It also enhances customisation options and robustness by providing
fallbacks and modularity.
- Implement a new, streamlined translation macro.
- Load translations from `/i18n` TOML files.
- Remove redundant configuration requirements.
- Refactor templates to align with new i18n system.
- Add support for Hindi, Japanese, Russian, Portuguese, Chinese,
Italian, German, Ukranian, Korean, and French languages.
- Credit Thomas Weitzel (@thomasweitzel) for inspiration.
1 year ago
- [X] [Comprehensive multi-language support ](https://welpo.github.io/tabi/blog/faq-languages/#how-does-tabi-handle-multilingual-support ). Add as many languages as you wish.
- [X] [Set any language as default ](https://welpo.github.io/tabi/blog/faq-languages/#how-do-i-set-a-default-language-for-my-site ). Set your base site to Chinese, Spanish, French, Hindi… or any [other supported language ](/i18n ). The theme's interface will be translated accordingly.
- [X] Dark and light themes. Defaults to the OS setting, with a switcher in the navigation bar.
- [X] Support for [comments using giscus, utterances, Hyvor Talk, or Isso ](https://welpo.github.io/tabi/blog/comments/ ).
- [X] Perfect Lighthouse score (Performance, Accessibility, Best Practices and SEO).
- [X] [Integration with remote repositories ](https://welpo.github.io/tabi/mastering-tabi-settings/#git-repository-integration ) on GitHub, GitLab, Gitea & Codeberg for commit history and showing the site source.
- [X] [Social media cards ](https://welpo.github.io/tabi/blog/mastering-tabi-settings/#social-media-cards ).
- [X] [KaTeX ](https://katex.org/ ) support for mathematical notation.
- [X] All JavaScript can be [fully disabled ](https://welpo.github.io/tabi/blog/javascript/ ).
- [X] [Customizable skins ](https://welpo.github.io/tabi/blog/customise-tabi/ ).
- [X] [Stylized feed ](https://welpo.github.io/tabi/atom.xml ).
- [X] [Quick navigation buttons ](https://welpo.github.io/tabi/blog/mastering-tabi-settings/#quick-navigation-buttons ).
- [X] [Footnote backlinks ](https://welpo.github.io/tabi/blog/mastering-tabi-settings/#footnote-backlinks ).
- [X] [Copy button for code blocks ](https://welpo.github.io/tabi/blog/mastering-tabi-settings/#copy-button-on-code-blocks ).
- [X] [Custom canonical URLs ](https://welpo.github.io/tabi/blog/mastering-tabi-settings/#canonical-url ).
- [X] [Projects page ](https://welpo.github.io/tabi/projects/ ).
- [X] [Archive page ](https://welpo.github.io/tabi/archive/ ).
- [X] [Customizable Table of Contents ](https://welpo.github.io/tabi/blog/toc/ ).
- [X] [Mail encoding ](https://welpo.github.io/tabi/blog/mastering-tabi-settings/#encoded-email ) for spam protection.
- [X] [Tags ](https://welpo.github.io/tabi/blog/mastering-tabi-settings/#tags ).
- [X] [Social links ](https://welpo.github.io/tabi/blog/mastering-tabi-settings/#social-media-icons ).
- [X] [Custom copyright notice ](https://welpo.github.io/tabi/blog/mastering-tabi-settings/#copyright ).
- [X] Responsive design.
- [X] Code syntax highlighting with colours based on [Catppuccin ](https://github.com/catppuccin/catppuccin ) Frappé.
- [X] [Customizable secure headers ](https://welpo.github.io/tabi/blog/security/ ).
- [X] [Custom shortcodes ](https://welpo.github.io/tabi/blog/shortcodes/ ).
- [X] Thorough documentation. See [Mastering tabi Settings: A Comprehensive Guide ](https://welpo.github.io/tabi/blog/mastering-tabi-settings/ )
## Quick start
Once you have installed Zola 0.17.0 or newer:
```bash
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:
0. 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
2. Enable the theme in your `config.toml` :
```
theme = "tabi"
```
3. Set a `title` in your `config.toml` :
```
title = "Your Site Title"
```
4. 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"
```
5. 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…".
🌐 feat(i18n): overhaul translation system & add languages (#145)
Revamp the existing translation system, simplifying
management and adding several new languages. The new system reads from
TOML files in the `/i18n` directory and improves template structures.
It also enhances customisation options and robustness by providing
fallbacks and modularity.
- Implement a new, streamlined translation macro.
- Load translations from `/i18n` TOML files.
- Remove redundant configuration requirements.
- Refactor templates to align with new i18n system.
- Add support for Hindi, Japanese, Russian, Portuguese, Chinese,
Italian, German, Ukranian, Korean, and French languages.
- Credit Thomas Weitzel (@thomasweitzel) for inspiration.
1 year ago
6. 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:
🌐 feat(i18n): overhaul translation system & add languages (#145)
Revamp the existing translation system, simplifying
management and adding several new languages. The new system reads from
TOML files in the `/i18n` directory and improves template structures.
It also enhances customisation options and robustness by providing
fallbacks and modularity.
- Implement a new, streamlined translation macro.
- Load translations from `/i18n` TOML files.
- Remove redundant configuration requirements.
- Refactor templates to align with new i18n system.
- Add support for Hindi, Japanese, Russian, Portuguese, Chinese,
Italian, German, Ukranian, Korean, and French languages.
- Credit Thomas Weitzel (@thomasweitzel) for inspiration.
1 year ago
```toml
[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.
🌐 feat(i18n): overhaul translation system & add languages (#145)
Revamp the existing translation system, simplifying
management and adding several new languages. The new system reads from
TOML files in the `/i18n` directory and improves template structures.
It also enhances customisation options and robustness by providing
fallbacks and modularity.
- Implement a new, streamlined translation macro.
- Load translations from `/i18n` TOML files.
- Remove redundant configuration requirements.
- Refactor templates to align with new i18n system.
- Add support for Hindi, Japanese, Russian, Portuguese, Chinese,
Italian, German, Ukranian, Korean, and French languages.
- Credit Thomas Weitzel (@thomasweitzel) for inspiration.
1 year ago
To learn more about multilingual support, see the [Frequently Asked Questions ](https://welpo.github.io/tabi/blog/faq-languages/ ).
## Inspiration
This theme was inspired by:
- [shadharon ](https://github.com/syedzayyan/shadharon ) — tabi started as a fork of [syedzayyan ](https://github.com/syedzayyan )'s theme;
- [tailwind-nextjs-starter-blog ](https://github.com/timlrx/tailwind-nextjs-starter-blog );
- [abridge ](https://github.com/Jieiku/abridge );
- [internetVin's blog ](https://internetvin.ghost.io ).
## Contributing
🌐 feat(i18n): overhaul translation system & add languages (#145)
Revamp the existing translation system, simplifying
management and adding several new languages. The new system reads from
TOML files in the `/i18n` directory and improves template structures.
It also enhances customisation options and robustness by providing
fallbacks and modularity.
- Implement a new, streamlined translation macro.
- Load translations from `/i18n` TOML files.
- Remove redundant configuration requirements.
- Refactor templates to align with new i18n system.
- Add support for Hindi, Japanese, Russian, Portuguese, Chinese,
Italian, German, Ukranian, Korean, and French languages.
- Credit Thomas Weitzel (@thomasweitzel) for inspiration.
1 year ago
Please do! We appreciate bug reports, improvements to translations or documentation (however minor), feature requests…
Take a look at the [Contributing Guidelines ](/CONTRIBUTING.md ) to learn more.
## License
The code is available under the [MIT license ](./LICENSE ).