Skip to content
Proyectos

Acerca de

A Zola theme embracing minimalism, focusing on clean CSS while steering clear of resource-heavy JavaScript. Immerse yourself in a seamless user experience, powered by lightning-fast load times. ⚡

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+1
in 7 days
+1
in 15 days
+1
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

anemone

A minimalist Zola theme that prioritises clean CSS and avoids heavy JavaScript. Content takes centre stage in a clutter-free layout with fast load times, responsive typography, and light/dark colour schemes.

Browse the demo at anemone.pages.dev.

Anemone Light and Dark Theme

Requirements

  • Zola 0.23.5 or newer (the theme uses Tera 2 components and text_direction).

Installation

  1. Clone the theme into your site's themes directory:

    cd themes
    git clone https://github.com/Speyll/anemone
    
  2. Enable it in your config.toml (or zola.toml):

    theme = "anemone"
    
  3. Copy the options you need from the demo config.toml and the content examples in this repository.

Configuration

Basic site settings

base_url = "https://example.com"
title = "My site"
description = "A short description used for meta tags and feeds."
default_language = "en"

theme = "anemone"
generate_feeds = true
generate_sitemap = true

taxonomies = [
  { name = "tags", feed = true, paginate_by = 10 },
]

Interface translations

The theme translates its interface through Zola's translation tables. Missing keys fall back to the default language and then to the built-in English text, so a single-language site does not need a complete table or any table at all.

# Translations for the default language
[translations]
language_name = "English"
nav_label = "Main navigation"
nav_home = "Home"
nav_about = "About"
nav_blog = "Blog"
language_selector = "Language"
language_homepage = "Homepage"
theme_toggle = "Toggle color theme"
skip_to_content = "Skip to content"
published_on = "Published on"
by_author = "By"
table_of_contents = "Table of contents"
tags = "Tags"
pagination = "Pagination"
previous_page = "Previous page"
next_page = "Next page"
page_of = "{current} of {total}"
all_tags = "All tags"
tagged_with = "Posts tagged “{term}”"
post_count = "{count} posts"
no_tags = "No tags yet."
rss_feed = "RSS feed"
return_home = "Return home"
not_found_title = "404 - Not Found"
not_found_message = "The page you're looking for doesn't exist."
previous_webring = "Previous site in webring"
next_webring = "Next site in webring"
license_prefix = "Except where otherwise noted, content on this site is licensed under the"
license_suffix = "license."

{current}, {total}, {term}, and {count} are placeholders filled by the templates.

Navigation

header_nav is a list of items. Use path for content inside Zola (it is resolved per language), or url for an external or hand-written link. key looks up a translation; name is the fallback label.

[extra]
header_nav = [
  { path = "@/_index.md", key = "nav_home", name = "Home" },
  { path = "@/about.md", key = "nav_about", name = "About" },
  { path = "@/blog/_index.md", key = "nav_blog", name = "Blog" },
  { url = "https://example.org", name = "Elsewhere" },
]

Navigation items are resolved in the current language first. When a translation does not exist, the item stays in the menu and links to the page or section in the default language, with lang/hreflang naming the destination's real language. Items that exist in no language are hidden rather than linked to a guessed URL. The current page and its parent section are marked as active; fallback links never claim the active state.

Multilingual sites

Zola's native multilingual system is used throughout: translated URLs, <html lang>/dir, hreflang alternates, per-language feeds and sitemap entries, and text_direction() for RTL languages.

default_language = "en"

[translations]
language_name = "English"
# ...keys...

[languages.fr]
title = "Mon site"
description = "Description française."
generate_feeds = true
taxonomies = [
  { name = "tags", feed = true, paginate_by = 10 },
]

[languages.fr.translations]
language_name = "Français"
nav_home = "Accueil"
nav_about = "À propos"
nav_blog = "Blog"
language_homepage = "Page d'accueil"
# ...other keys...

Each non-default language needs its own taxonomies and generate_feeds setting: Zola does not inherit those from the top-level configuration.

Add translations as sibling files with the language code before .md:

content/_index.md
content/_index.fr.md
content/blog/_index.md
content/blog/_index.fr.md
content/blog/post.md
content/blog/post.fr.md

The language selector is a single compact dropdown, shown on every multilingual site. The current language is always displayed in the header. Opening it lists the configured languages in a stable order — the default language first, then the others — labelled with each language's language_name. When the current page or section has a real translation in a language, the option links to that translation and carries hreflang. Otherwise it links to that language's generated homepage, with an accessible title/aria-label naming it as a homepage; homepage fallbacks deliberately omit hreflang because they are not translations of the current page. No URL is concatenated or guessed: a language whose homepage cannot be resolved by get_section is omitted. Set language_name and language_homepage in every translation table so the selector stays readable.

Other options

[extra]
author = "Your name"           # also used for article structured data
favicon = "favicon.ico"        # local path or full URL
list_pages = true              # list section pages on the home page
twitter_card = true
display_author = true          # show the author in post headers

# Optional content licence in the footer
footer_content_license = "Creative Commons Attribution 4.0 International"
footer_content_license_link = "https://creativecommons.org/licenses/by/4.0/"

Per page:

+++
title = "A post"
date = 2026-01-02
description = "Shown in meta tags and feeds."

[extra]
author = "Guest author"
display_published = true
toc = true
+++

Content components

Zola 0.23 removed Markdown shortcodes in favour of Tera components. Anemone provides four content components. They run before Markdown is rendered, so keep their calls on their own lines and do not indent the surrounding HTML.

Images

{{<img id="/images/photo.jpg" alt="A description" caption="Optional caption" class="textCenter" />}}

YouTube

{{<youtube id="VIDEO_ID" title="Video title" class="center" />}}

Add autoplay={true} if needed. The embed uses youtube-nocookie.com.

Webrings

{{<webring prev="#" webring="#" webringName="Random Webring" next="#" lang={lang} />}}

lang={lang} makes the accessible previous/next labels follow the content language.

Mark

{% <mark> %}Highlighted **text**{% </mark> %}

Because components replace shortcodes, there is no templates/shortcodes/ directory any more. Define additional components in templates/components.html or in files under templates/; call them in content with {{<name arg="value" />}}.

Styling

The theme vendors suCSS so a build never depends on a mutable CDN branch:

  • static/css/sucss.css — the minified reset and framework, with attribution at the top.
  • static/css/style.css — Anemone's layout, header, listing, pagination, TOC, and theme-toggle styles.

Both are loaded from the site itself. To customise, override the CSS custom properties or add rules in your own stylesheet after style.css. The light theme's accent and link colours are chosen to meet WCAG AA contrast on the page background.

Interactive colours are shared through two framework tokens: --hover-bg (the link accent) and --hover-text (the page background). Links, navigation, the language dropdown, pagination, tags, and the table of contents all use the same pair on hover and :focus-visible. Theme rules only reassign --link at rest, so active items keep their accent colour until they are hovered or focused.

Migrating from earlier releases

  1. Upgrade to Zola 0.23.5+. Remove highlight_code/highlight_theme from the [markdown] table if present; use [markdown.highlighting] instead.
  2. Update navigation to the path/url + key/name schema shown above.
  3. Replace shortcode calls with the components above (webring(...) → webring component, and so on).
  4. Add translation tables if you want translated interface text. They are optional.
  5. Delete template overrides you copied from old releases (templates/atom.xml, templates/sitemap.xml, templates/blog/page.html, templates/blog/section.html). Zola's built-ins handle feeds, sitemaps, and sections correctly for multilingual sites.
  6. Remove static/click.ogg and any custom click-sound code; the theme no longer ships a sound effect.

Licence

Anemone is available under the GPL-3.0 licence. The vendored suCSS framework is MIT licensed; see static/css/sucss-LICENSE.txt.

Explorar proyectos relacionados

Cargando…