Change language

Extra Config Variables

These variables must be set under extra object of the config. If they are not set, the default values will be used from the theme.toml.

tr_path

The path where language TOML files are stored, default is "langs".

title_sep

Title separator, default is " – ".

A list of menus that can be shown with the menu macro.

Menus are defined like, extra.menus.main, etc. Just the main is the custom name for your menu, such as footer, header, navigation. Usually, main is the name that uses by default in the site's main navigation.

Each menu item has the following properties:

Example navigation:

[[extra.menus.main]]
  name = "Home"
  url = "/.l./"
  key = "h"
  id = "nav1"
[[extra.menus.main]]
  name = "Documentation"
  url = "/.l./docs"
  id = "nav2"
[[extra.menus.main]]
  name = "Blog"
  url = "/.l./blog"
  id = "nav3"
  # Lets add class attribute to blog
  [extra.menus.main.attributes]
    class = "blog"

searching