☰
⏱️ Temps de lecture estimé : 1 min
Theming
LiteDocs uses Twig as a templating engine. You can easily customize the look and feel.
Creating a Theme
- Create a folder in
themes/(e.g.,themes/my-theme). - Create a
base.html.twigfile inside. - Create an
assets/folder for your CSS and JS.
Available Variables
In your Twig templates, you have access to:
content: The HTML content of the page.nav: The navigation tree.page_title: The current page title.config: The full configuration array.trans: Translations (based on current language).
Overriding Translations
You can override any text by creating a translations/en.yaml file at the root of your project:
core:
ui:
navigation: "Main Menu"