mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-07-09 17:54:40 +02:00
deploy: 353027cb5c
This commit is contained in:
parent
22ed2835b9
commit
f1f5f65451
16 changed files with 22 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
|||
const themeFlyoutDisplay = "hidden";
|
||||
const themeVersionSelector = "True";
|
||||
const themeLanguageSelector = "True";
|
||||
const themeVersionSelector = true;
|
||||
const themeLanguageSelector = true;
|
||||
|
||||
if (themeFlyoutDisplay === "attached") {
|
||||
function renderLanguages(config) {
|
||||
|
@ -8,10 +8,14 @@ if (themeFlyoutDisplay === "attached") {
|
|||
return "";
|
||||
}
|
||||
|
||||
// Insert the current language to the options on the selector
|
||||
let languages = config.projects.translations.concat(config.projects.current);
|
||||
languages = languages.sort((a, b) => a.language.name.localeCompare(b.language.name));
|
||||
|
||||
const languagesHTML = `
|
||||
<dl>
|
||||
<dt>Languages</dt>
|
||||
${config.projects.translations
|
||||
${languages
|
||||
.map(
|
||||
(translation) => `
|
||||
<dd ${translation.slug == config.projects.current.slug ? 'class="rtd-current-item"' : ""}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue