- Increment
ver
by one when making important changes to a page - When updating
_data/locales/sidebar/xx.yml
, make sure to sync changes between all languages - When making a table, add
{: .table .table-striped}
on the line under the table or the table will not be formatted properly
- Add to
_data/locales/languages.yml
- Make sure
_data/locales/default/xx.json
is fully translated - Make sure
_data/locales/sidebar/xx.yml
exists - Copy
index.md
and change front matter forlang
Note that untranslated pages should not exist. If a page is untranslated the UI will defualt to the english page (unless linked to).
{% include warning.html class="[alert class]" message="[your html here]" %}
Where class
is one of the classes from here. E.g. primary
, danger
, warning
, etc.
Normal page:
---
title: [Title]
stub: [File name]
lang: en
ver: 1
---
Add layout: no-sidebar
to remove sidebar, localization buttons, and edit button.