ombryt

Reference

Configuration

ombryt.toml is in the project's root. Every setting has a default, so the file can be empty or missing. Unknown settings are an error, so that typos do not pass unnoticed.

[site] #

SettingDefault
url"http://localhost:8000"the public URL, for absolute links, feeds, the sitemap and meta tags
title""
description""
language"en"
authornone{ name, url, email }
extra{}anything else, for templates as site.extra

If url has a path (https://example.com/blog), the url filter puts it in front of site paths.

[build] #

SettingDefault
src"src"source directory
out"_site"output directory; emptied before each build, and must be inside the project
templates"_includes"template directory, relative to src
ignore[]paths relative to src that are neither pages nor copied
draftsfalseinclude draft: true pages
strict_linksfalsefail on broken internal links
words_per_minute275for reading.minutes

[markdown] #

SettingDefault
smart_punctuationfalsecurly quotes, dashes and ellipses
toc_levels[2, 3]heading levels in toc
heading_anchorsfalseadd a # link to each heading

[highlight] #

SettingDefault
enabledtrue
theme"base16-ocean.dark"see ombryt themes
light_themenonea second theme, scoped under light_selector
light_selector"[data-theme=light]"a selector, or an @media query
css"/css/highlight.css"where the stylesheet is written; "" for none
prefix"hl-"class prefix

[[feeds]] #

One entry per set of feeds; none by default.

SettingDefault
query"post"which pages, newest first
limit20
rss"/feed.rss"
atomnone
json"/feed.json"JSON Feed 1.1
content"intro"full, intro or none
exclude_tags[]
title, descriptionthe site's

[sitemap] #

SettingDefault
enabledtrue

[metas] #

SettingDefault
enabledtrue
imagenonedefault share image
twitternonethe site's handle, for twitter:site
generatortrueadd <meta name="generator">
SettingDefault
index""output path of the index, such as /search.json; empty for none
query""which pages
texttrueinclude the body text
max_text0characters per page, 0 for all

A full example #

[site]
url = "https://hexagon.56k.guru"
title = "Hexagon's Blog"
description = "Code, servers and security."
author = { name = "Hexagon", url = "https://hexagon.56k.guru" }

[highlight]
theme = "OneHalfDark"
light_theme = "OneHalfLight"

[[feeds]]
query = "post"
rss = "/feed.rss"
json = "/feed.json"
exclude_tags = ["post", "standalone"]

[search]
index = "/search.json"
query = "post"