Type object
File match zola.toml
Schema URL https://catalog.lintel.tools/schemas/schemastore/zola-configuration/latest.json
Source https://cscnk52.github.io/json-schemas/zola.schema.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

base_url string

Base URL of the site, the only required config argument

Default: "http://a-website.com"
theme string | null

Theme to use

Default: null
title string | null

Title of the site. Defaults to None

Default: null
description string | null

Description of the site

Default: null
default_language string

The language used in the site. Defaults to "en"

Default: "en"
languages Record<string, object>

The list of supported languages outside of the default one

Default:
{}
translations Record<string, string>

The translations strings for the default language

Default:
{}
generate_feeds boolean

Whether to generate feeds. Defaults to false.

Default: false
feed_limit integer | null

The number of articles to include in the feed. Defaults to including all items.

Default: null
format=uintmin=0
feed_filenames string[]

The filenames to use for feeds. Used to find the templates, too. Defaults to ["atom.xml"], with "rss.xml" also having a template provided out of the box.

Default:
[
  "atom.xml"
]
taxonomies TaxonomyConfig[]
Default:
[]
author string | null

The default author for pages.

Default: null
compile_sass boolean

Whether to compile the sass directory and output the css files into the static folder

Default: false
minify_html boolean

Whether to minify the html output

Default: false
build_search_index boolean

Whether to build the search index for the content

Default: false
ignored_content string[]

A list of file glob patterns to ignore when processing the content folder. Defaults to none. Had to remove the PartialEq derive because GlobSet does not implement it. No impact because it's unused anyway (who wants to sort Configs?).

Default:
[]
ignored_static string[]

A list of file glob patterns to ignore when processing the static folder. Defaults to none.

Default:
[]
output_dir string
Default: "public"
preserve_dotfiles_in_output boolean

Whether dotfiles inside the output directory are preserved when rebuilding the site

Default: false
slugify object
4 nested properties
paths string | string | string
paths_keep_dates boolean
Default: false
taxonomies string | string | string
anchors string | string | string
markdown object
16 nested properties
highlight_code boolean

Whether to highlight all code blocks found in markdown files. Defaults to false

Default: false
error_on_missing_highlight boolean

Emit an error for missing highlight languages. Defaults to false

Default: false
highlight_theme string

Which themes to use for code highlighting. See Readme for supported themes Defaults to "base16-ocean-dark"

Default: "base16-ocean-dark"
highlight_themes_css ThemeCss[]

Generate CSS files for Themes out of syntect

Default:
[]
render_emoji boolean

Whether to render emoji aliases (e.g.: :smile: => 😄) in the markdown files

Default: false
external_links_class string | null

CSS class to add to external links

Default: null
external_links_target_blank boolean

Whether external links are to be opened in a new tab If this is true, a rel="noopener" will always automatically be added for security reasons

Default: false
external_links_no_follow boolean

Whether to set rel="nofollow" for all external links

Default: false
external_links_no_referrer boolean

Whether to set rel="noreferrer" for all external links

Default: false
smart_punctuation boolean

Whether smart punctuation is enabled (changing quotes, dashes, dots etc in their typographic form)

Default: false
definition_list boolean

Whether parsing of definition lists is enabled

Default: false
bottom_footnotes boolean

Whether footnotes are rendered at the bottom in the style of GitHub.

Default: false
extra_syntaxes_and_themes string[]

A list of directories to search for additional .sublime-syntax and .tmTheme files in.

Default:
[]
lazy_async_image boolean

Add loading="lazy" decoding="async" to img tags. When turned on, the alt text must be plain text. Defaults to false

Default: false
insert_anchor_links string
Values: "left" "right" "heading" "none"
github_alerts boolean

Whether to enable GitHub-style alerts

Default: false
extra

All user params set in [extra] in the config

Default:
{}
generate_sitemap boolean

Enables the generation of Sitemap.xml

Default: true
generate_robots_txt boolean

Enables the generation of robots.txt

Default: true
exclude_paginated_pages_in_sitemap string
Values: "none" "all"

Definitions

LanguageOptions object
title string | null

Title of the site. Defaults to None

Default: null
description string | null

Description of the site. Defaults to None

Default: null
generate_feeds boolean

Whether to generate feeds for that language, defaults to false

Default: false
feed_filenames string[]

The filenames to use for feeds. Used to find the templates, too. Defaults to ["atom.xml"], with "rss.xml" also having a template provided out of the box.

Default:
[
  "atom.xml"
]
taxonomies TaxonomyConfig[]
Default:
[]
build_search_index boolean

Whether to generate search index for that language, defaults to false

Default: false
search object
7 nested properties
include_title boolean

Include the title of the page in the search index. true by default.

Default: true
include_content boolean

Includes the whole content in the search index. Ok for small sites but becomes too big on large sites. true by default.

Default: true
truncate_content_length integer | null

Optionally truncate the content down to n code points. This might cut content in a word

Default: null
format=uintmin=0
include_description boolean

Includes the description in the search index. When the site becomes too large, you can switch to that instead. false by default

Default: false
include_date boolean

Include the RFC3339 datetime of the page in the search index. false by default.

Default: false
include_path boolean

Include the path of the page in the search index. false by default.

Default: false
index_format string
Values: "elasticlunr_json" "elasticlunr_javascript" "fuse_json" "fuse_javascript"
translations Record<string, string>

A toml crate Table with String key representing term and value another String representing its translation. Use get_translation() method for translating key into different languages.

Default:
{}
TaxonomyConfig object
name string

The name used in the URL, usually the plural

Default: ""
slug string

The slug according to the config slugification strategy

Default: ""
paginate_by integer | null

If this is set, the list of individual taxonomy term page will be paginated by this much

Default: null
format=uintmin=0
paginate_path string | null
Default: null
render boolean

Whether the taxonomy will be rendered, defaults to true

Default: true
feed boolean

Whether to generate a feed only for each taxonomy term, defaults to false

Default: false
IndexFormat string
LinkChecker object
skip_prefixes string[]

Skip link checking for these URL prefixes

Default:
[]
skip_anchor_prefixes string[]

Skip anchor checking for these URL prefixes

Default:
[]
internal_level string
Values: "error" "warn"
external_level string
Values: "error" "warn"
ignored_files string[]

A list of file glob patterns to skip link checking on

Default:
[]
LinkCheckerLevel string
Slugify object
paths string | string | string
paths_keep_dates boolean
Default: false
taxonomies string | string | string
anchors string | string | string
SlugifyStrategy string | string | string
Markdown object
highlight_code boolean

Whether to highlight all code blocks found in markdown files. Defaults to false

Default: false
error_on_missing_highlight boolean

Emit an error for missing highlight languages. Defaults to false

Default: false
highlight_theme string

Which themes to use for code highlighting. See Readme for supported themes Defaults to "base16-ocean-dark"

Default: "base16-ocean-dark"
highlight_themes_css ThemeCss[]

Generate CSS files for Themes out of syntect

Default:
[]
render_emoji boolean

Whether to render emoji aliases (e.g.: :smile: => 😄) in the markdown files

Default: false
external_links_class string | null

CSS class to add to external links

Default: null
external_links_target_blank boolean

Whether external links are to be opened in a new tab If this is true, a rel="noopener" will always automatically be added for security reasons

Default: false
external_links_no_follow boolean

Whether to set rel="nofollow" for all external links

Default: false
external_links_no_referrer boolean

Whether to set rel="noreferrer" for all external links

Default: false
smart_punctuation boolean

Whether smart punctuation is enabled (changing quotes, dashes, dots etc in their typographic form)

Default: false
definition_list boolean

Whether parsing of definition lists is enabled

Default: false
bottom_footnotes boolean

Whether footnotes are rendered at the bottom in the style of GitHub.

Default: false
extra_syntaxes_and_themes string[]

A list of directories to search for additional .sublime-syntax and .tmTheme files in.

Default:
[]
lazy_async_image boolean

Add loading="lazy" decoding="async" to img tags. When turned on, the alt text must be plain text. Defaults to false

Default: false
insert_anchor_links string
Values: "left" "right" "heading" "none"
github_alerts boolean

Whether to enable GitHub-style alerts

Default: false
ThemeCss object
theme string

Which theme are we generating the CSS from

Default: ""
filename string

In which file are we going to output the CSS

Default: ""
InsertAnchor string
ExcludePaginatedPagesInSitemap string