Rubedo

Configuration

Your website needs to provide a configuration file named config.toml. It has to be placed in the root of your website project directory.

Following is a simple example configuration file, containing only the keys that are parsed by Rubedo directly.

title = "My website"
language = "en-US"
themes = [
    "my_cool_theme",
]
authors = [
    "Jane Doe",
    "John Doe",
]
codeblock_theme = "themes/Choco.tmTheme"
heading_ids = true
extensionless_pages = true
output_dir = "public"
static_dir = "static"

Custom data

You can add additional keys in your config.toml and make them accessible to your theme inside the data section.

Following is an example.

title = "My website"
language = "en-US"
theme = "my_cool_theme"
authors = [
    "Jane Doe",
    "John Doe",
]

[data]
some_arbitrary_number = 10
subtitle = "This website is very cool"
links = [
    {title="Home", url="/"},
    {title="About", url="/pages/about"},
    {title="Another cool website", url="https://example.com"},
]

[data.some_subkey]
foo = "bar"
lorem = "ipsum"

These values will then be accessible from inside template. For example, to access the subtitle value in the example above, you would use this in your template: {{site.config.data.subtitle}}.

Configuration keys