A clean and elegant blog theme for Zola. Linkita is based on Kita and Hugo-Paper and is multilingual and SEO friendly.
- The source code is available on Codeberg and mirrored on GitHub.
- For discussion, join the Matrix chat room.
- Open bug reports and feature requests on Codeberg.
- See demo source code.
- Live preview in:
- Easy to use and modify
- No preset limits
- Inject support
- Dark mode
- Responsive design
- Social icons
- Taxonomies support
- Projects page
- Archive page
- Table of Content
- Admonition shortcode
- SEO friendly
- Comments using Giscus
- Mathematical notations using KaTeX
- Diagrams and charts using Mermaid
- Multilingual support
- Search support (elasticlunr_javascript)
- Improved search engine optimization
- Improved configurability
- Author profiles
- Projects shortcode
- Keyboard shortcuts
- Relative URLs support
- Create a new Zola site if you haven't already:
zola init myblog
cd myblog
git init
- Add the theme as a git submodule:
git submodule add https://codeberg.org/salif/linkita.git themes/linkita
If you don't want to use git submodules, you can clone the repository instead: git clone https://codeberg.org/salif/linkita.git themes/linkita
- Enable the theme in your
config.toml
file:
theme = "linkita"
Place it near the base_url
variable, not under [extra]
.
To update the theme, run:
git submodule update --remote themes/linkita
Check the changelog for all versions after the one you are using. There may be breaking changes that require manual involvement.
If and only if you use Tailwind classes in your templates directory, run:
cd themes/linkita
pnpm tailwindcss -i ./src/app.css -o ../../static/main.min.css --minify
Linkita uses the following front matter variables. All variables are optional. Set the ones you need.
---
title: ""
description: ""
date:
updated:
taxonomies:
categories:
tags:
extra:
comment: false
math: false
mermaid: false
cover:
image: ""
alt: ""
---
+++
title = ""
description = ""
# The date of the post
date = 2025-12-30
# The last updated date of the post
updated = 2025-12-31
[taxonomies]
categories = []
tags = []
[extra]
# Enable comments
comment = false
# Enable KaTeX support
math = false
# Enable Mermaid support
mermaid = false
[extra.cover]
# Path to the cover image
image = ""
# A description of the cover image
alt = ""
+++
Linkita supports more extra variables, listed here.
Create a content/_index.md
file and set extra.profile
to your username:
+++
sort_by = "date"
paginate_by = 4
[extra]
profile = "your_username"
+++
Do it for each language in your blog.
For French, the file name is content/_index.fr.md
.
See Profiles for more.
In the content
directory, create a subdirectory named blog
or another name of your choice.
Create a content/blog/_index.md
file:
+++
title = "Blog"
template = "archive.html"
transparent = true
[extra]
date_format = "%m-%d"
+++
Create a content/blog/hello.md
file:
+++
title = "Title"
date = 2025-12-30
+++
Summary <!-- more -->
## Hello, world!
The default page template page.html
is for blog posts.
For pages that are not blog posts you can use the pages.html
template.
In the content
directory, create a subdirectory named pages
and
create a content/pages/_index.md
file:
+++
render = false
page_template = "pages.html"
+++
Create a content/pages/about.md
file:
+++
title = "About me"
description = ""
path = "about"
+++
## Hello, world!
If you want, you can also create a page for your projects.
Choose one of the following options or skip if you don't know what you're doing:
The default author for posts is set using the author
variable in the config.toml
file.
You don't need to set authors
in the front matter if the default author is the only author of the post. Otherwise, set authors
:
+++
authors = ["author_username"]
+++
Useful if the blog has a team of several authors. If you choose this option you should set taxonomies in each post.
+++
[taxonomies]
authors = ["author_username", "author2_username"]
+++
You can easily use inject to add new features to your side without modifying the theme itself.
To use inject, you need to add some HTML files to the templates/injects
directory.
The available inject points are: head.html
, head_end.html
, header_nav.html
,
body_start.html
, body_end.html
, page_start.html
, page_end.html
, footer.html
.
For example, you can add JavaScript files and CSS stylesheets in the templates/injects/head_end.html
file.
Action | Shortcut |
---|---|
Home | Alt+! |
Search | Alt+/ |
Toggle menu | Alt++ |
Toggle dark mode | Alt+$ |
Go to prev page | Alt+, |
Go to next page | Alt+. |
Table of contents | Alt+= |
Skip to footer | Alt+_ |
Copy and paste the examples into your config.toml
file
and comment out the variables you don't use instead of setting empty values.
All variables are optional.
# The URL the site will be built for.
base_url = "https://example.com"
# The site theme to use.
theme = "linkita"
# The default language.
# "en" is for English.
default_language = "en"
# The default author for pages.
# See "extra.profiles".
author = "your_username"
# The site title.
# Will be in all page titles.
title = ""
# The site description.
# Used in feeds by default.
description = ""
# Automatically generate a feed.
# Default value: false
generate_feeds = true
# The filenames to use for the feeds.
# e.g. ["rss.xml"]
feed_filenames = ["atom.xml"]
# Build a search index from the pages and section content
# for "default_language".
# build_search_index = true
Zola has built-in support for taxonomies.
Linkita has special support for taxonomies named tags
, categories
, and authors
.
[[taxonomies]]
name = "categories"
feed = true
paginate_by = 4
[[taxonomies]]
name = "tags"
feed = true
paginate_by = 4
[[taxonomies]]
name = "authors"
feed = true
paginate_by = 4
You can add more languages by replacing fr
from the following example with the language code:
[languages.fr]
title = "Site title in French"
description = "Site description in French"
generate_feeds = true
feed_filenames = ["atom.xml"] # or ["rss.xml"]
build_search_index = true
taxonomies = [
{ name = "tags", feed = true, paginate_by = 4 }
]
[extra]
# Enable KaTeX math formula support globally.
# Default value: false
math = false
# Enable Mermaid support globally.
# Default value: false
mermaid = false
# Enable comments globally.
# Default value: false
comment = false
# Title separator.
title_separator = " | "
# The top menu.
# See "extra.menus".
header_menu_name = "menu_name"
# If you disable default favicons, you can use
# the inject support to set your own favicons.
# Default value: false
disable_default_favicon = false
# If you want to implement the JS code
# yourself, set to true and use the inject support.
# Default value: false
disable_javascript = false
# Default value: false
use_cdn = false
# Use relative urls.
# It doesn't apply for content yet.
# Default value: false
relative_urls = false
# If you want to view the site without a webserver
# set this and "relative_urls" to true.
# Default value: false
urls_to_index_html = false
# Prioritize summary over description.
# Default value: false
page_summary_on_paginator = false
# Reverse the order of prev and next post links.
# Default value: false
invert_page_navigation = false
# You can reorder the strings, remove them, replace them.
# For example, you can replace "site_title" with "home_button".
# Default value: ["site_title", "theme_button", "search_button", "translations_button"]
# header_buttons = []
# Valid "when" values:
# "date", "date_updated", "reading_time", "word_count", "authors", "tags", "".
# The "prepend" and "append" are used when the value of "when" is defined for the page.
# e.g. [{when="", prepend="Page Info: "},{when="date",prepend="Published on "},{when="authors",prepend="By "}]
# page_info = [{ when="date" }, { when="date_updated", prepend="(", append=")" }, { when="reading_time" }]
# page_info_on_paginator = [{ when="date" }, { when="reading_time" }]
# Enable table of contents on all pages.
# If not set, toc is enabled only on posts.
# If set to false, toc is disabled on all pages.
# Type: boolean or object
# toc = true
[extra.style]
# The custom background color.
bg_color = "#f4f4f5"
# The custom background color in dark mode.
bg_dark_color = "#18181b"
# Enable header blur.
header_blur = false
# The custom header color, only available
# when "header_blur" is false.
header_color = "#e4e4e7"
# The custom header color in dark mode, only available
# when "header_blur" is false.
header_dark_color = "#27272a"
[extra.menus]
menu_name = [
{ url = "$BASE_URL/blog/", name = "Archive" },
{ url = "$BASE_URL/categories/", name = "Categories" },
{ url = "$BASE_URL/tags/", name = "Tags" },
{ url = "$BASE_URL/about/", name = "About" },
]
# Example multilingual menu.
multilingual_menu_name = [
{ url = "$BASE_URL/about/", names = { en = "About", fr = "About in French" } },
{ url = "$BASE_URL/projects/", names = { en = "Projects", fr = "Projects in French" } },
{ url = "$BASE_URL/blog/", names = { en = "Archive", fr = "Archive in French" } },
{ url = "$BASE_URL/categories/", names = { en = "Categories", fr = "Categories in French" } },
{ url = "$BASE_URL/tags/", names = { en = "Tags", fr = "Tags in French" } },
{ url = "$BASE_URL/authors/", names = { en = "Authors", fr = "Authors in French" } },
]
To use a menu, set extra.header_menu_name
.
$BASE_URL
in url
will be automatically replaced with the language specific base url.
You can use names_i18n
instead of names
, see the static/i18n.json
file,
set names_i18n
to a common_
key.
You can use Internal links instead of $BASE_URL
.
# Replace "your_username" with your username.
[extra.profiles.your_username]
# The URL of avatar.
# e.g. "icons/github.svg"
avatar_url = ""
# A description of what is in the avatar.
avatar_alt = ""
# Invert avatar color in dark mode.
# Default value: false
avatar_invert = false
# Profile name.
# Default value: the username
name = ""
# Profile bio.
# Supports Markdown.
bio = ""
# Social icons.
# "name" should be the file name of "static/icons/*.svg" or
# the icon name of https://simpleicons.org/
# "url" supports "$BASE_URL".
# Other variables: "urls", "title", "titles".
social = [
{ name = "bluesky", url = "https://bsky.app/profile/username" },
{ name = "github", url = "https://github.com/username" },
{ name = "email", url = "mailto:[email protected]" },
{ name = "rss", url = "$BASE_URL/atom.xml" },
]
Skip if your site is not multilingual.
# For French. Replace "your_username" with your username.
[extra.profiles.your_username.languages.fr]
# A description of what is in the avatar.
avatar_alt = ""
# Profile name.
name = ""
# Profile bio.
# Supports Markdown.
bio = ""
# Social icons.
social = []
# Replace "your_username" with your username.
[extra.profiles.your_username.open_graph]
# The URL of social image.
image = ""
# A description of what is in the social image.
# Default value: ""
image_alt = ""
# Your first name. No default value.
first_name = ""
# Your last name. No default value.
last_name = ""
# Your username. No default value.
username = ""
# e.g. "female" or "male". No default value.
gender = ""
# fb_app_id = "Your fb app ID"
# fb_admins = ["YOUR_USER_ID"]
# Set if you have a Fediverse account.
# handle - Your Fediverse handle.
# domain - Your Fediverse instance.
# url - Your Fediverse account URL. Optional.
# Example for @[email protected]:
# { handle = "me", domain = "mastodon.social" }
fediverse_creator = { handle = "", domain = "" }
image
and image_alt
of the default author's profile will be used
as a fallback open graph image for all pages.
Skip if your site is not multilingual.
# For French. Replace "your_username" with your username.
[extra.profiles.your_username.open_graph.languages.fr]
# A description of what is in the social image.
image_alt = ""
[extra.footer]
# Replace with the correct year.
# Default value: the current year
since = 2025
# Replace with the URL of the license you want.
# No default value. Supports "$BASE_URL".
license_url = "https://creativecommons.org/licenses/by-sa/4.0/deed"
# Replace "Your Name" with your name and "CC BY-SA 4.0" with the name of the license you want.
copyright = "© $YEAR Your Name | [CC BY-SA 4.0]($LICENSE_URL)"
# Not used yet.
# Supports "$BASE_URL".
# privacy_policy_url = "$BASE_URL/privacy-policy/"
# Not used yet.
# Supports "$BASE_URL".
# terms_of_service_url = "$BASE_URL/terms-of-service/"
# Not used yet.
# Supports "$BASE_URL".
# search_page_url = "$BASE_URL/search/"
The copyright
variable supports Markdown, $BASE_URL
, $YEAR
(uses since
), and $LICENSE_URL
(uses license_url
).
For date format, see chrono docs.
# For English
[extra.languages.en]
# No default value.
locale = "en_US"
# Default value: "%F"
date_format = "%x"
# Default value: extra.page_info
# page_info = []
# Default value: extra.page_info_on_paginator
# page_info_on_paginator = []
# Default value: extra.header_menu_name
# header_menu_name = "menu_name"
# Default value: extra.header_buttons
# header_buttons = []
# To set a different "lang" attribute of the document.
# You can set IETF tag for artificial languages, e.g. "art-x-code".
# language_code = ""
# To use a different interface language, e.g. English.
# i18n_code = "en"
# Set a description for taxonomy pages.
[extra.languages.en.taxonomy_descriptions]
categories = "A map of all categories on this site. Start exploring!"
tags = "A map of all tags on this site. Start exploring!"
authors = "A map of all authors on this site. Start exploring!"
# Set a description for term pages.
# "$NAME" will be automatically replaced.
[extra.languages.en.term_descriptions]
categories = "Browse articles related to $NAME. Start exploring!"
tags = "Browse articles related to $NAME. Start exploring!"
authors = "Browse articles written by $NAME. Start exploring!"
# For French
[extra.languages.fr]
locale = "fr_FR"
date_format = "%x"
Set only if you use GoatCounter.
[extra.goatcounter]
# No default value.
endpoint = "https://MYCODE.goatcounter.com/count"
# To enable tracking pixel, set to an empty string.
# If your "base_url" includes a subpath, set to
# the subpath without a trailing slash.
# noscript_prefix = ""
Set only if you use Vercel Web Analytics.
[extra.vercel_analytics]
# No default value.
src = "/_vercel/insights/script.js"
Open a page of your site, adding #disable-analytics
to the page address.
Do this once for each browser and device.
For example, open http://127.0.0.1:1111/#disable-analytics.
See giscus.app.
Only available when extra.comment
in the front matter or extra.comment
in the config is set to true.
[extra.giscus]
# No default value.
repo = ""
# No default value.
repo_id = ""
# No default value.
category = ""
# No default value.
category_id = ""
# Default value: "pathname"
mapping = "pathname"
# Default value: 1
strict = 1
# Default value: 0
reactions_enabled = 0
# Default value: 0
emit_metadata = 0
# Default value: "top"
input_position = "top"
# Default value: "light"
theme = "light"
# Default value: "en"
lang = "en"
# Default value: "lazy"
loading = "lazy"
See the MIT License file.
Pull requests are welcome on Codeberg and Github.
- Zola Themes Collection
- salif.eu: Personal website
- Rratic's blog: Personal website
If your blog uses Linkita and is open source, feel free to create a pull request to add it to this list.