From 2420fceb44b2778741607b5bf632cc8ccccfb234 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 30 Nov 2023 22:43:14 +0100 Subject: [PATCH] Migrated config to yaml syntax. --- config.toml => config.toml.old | 32 +++--- config.yml | 107 ++++++++++++++++++++ content/project/{_index.md => _index.en.md} | 0 3 files changed, 123 insertions(+), 16 deletions(-) rename config.toml => config.toml.old (82%) create mode 100644 config.yml rename content/project/{_index.md => _index.en.md} (100%) diff --git a/config.toml b/config.toml.old similarity index 82% rename from config.toml rename to config.toml.old index 5d88e15..d3a5ffb 100644 --- a/config.toml +++ b/config.toml.old @@ -46,22 +46,22 @@ style = "github-dark" # customJS = ["js/custom.js"] # Emiliano: tentativi di multilingua -#[languages] -# [languages.en.params] -# disabled = false -# languageCode = 'en-US' -# languageDirection = 'ltr' -# languageName = "English" -# weight = 1 -# read_more_copy = "Read more" -# -# [languages.it.params] -# disabled = false -# languageCode = 'it-IT' -# languageDirection = 'ltr' -# languageName = "Italiano" -# weight = 2 -# read_more_copy = "Leggi di più" +[languages] + [languages.en.params] + disabled = false + languageCode = 'en-US' + languageDirection = 'ltr' + languageName = "English" + weight = 1 + read_more_copy = "Read more" + + [languages.it.params] + disabled = false + languageCode = 'it-IT' + languageDirection = 'ltr' + languageName = "Italiano" + weight = 2 + read_more_copy = "Leggi di più" [[params.ananke_socials]] name = "twitter" diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..2af3f1c --- /dev/null +++ b/config.yml @@ -0,0 +1,107 @@ +--- +baseURL: https://www.libreschool.org +languageCode: en-US +title: La bella epoca +author: Dio +# theme: hugo-universal-theme +theme: ananke +# theme: hugo-clarity +# theme: hugo-vitae +# theme: hugo-PaperMod +# theme: hugo-coder + +paginate: 20 + +params: + author: The LibreSchool project + info: The LibreSchool project + description: The LibreSchool project website + keywords: + - blog + - project + - foss + - linux + - libreoffice + - training + avatarurl: /images/avatar.jpg + site_logo: /images/logo_libreschool.svg + faviconSVG: /images/favicon.svg + favicon_16: /images/favicon-16x16.png + favicon_32: /images/favicon-32x32.png + since: 2015 + enableTwemoji: true + colorScheme: auto + hidecolorschemetoggle: false +# customCSS: +# - css/custom.css +# customSCSS: +# - scss/custom.scss +# customJS: +# - js/custom.js + ananke_socials: + - name: twitter + url: https://www.twitter.com/bglug_it + - name: github + url: https://git.libreschool.org + +taxonomies: + categories: categories + series: series + tag: tags + author: authors + +defaultcontentlanguage: en + +languages: + en: + params: + disabled: false + languageCode: en-US + languageDirection: ltr + languageName: English + weight: 1 + read_more_copy: Read more + menu: + main: + - identifier: blog + name: Blog + weight: 1 + url: /en/posts/ + - identifier: project + name: Project + weight: 2 + url: /en/project/ + - identifier: about + name: About + weight: 3 + url: /en/about/ + it: + params: + disable: false + languageCode: it-IT + languageDirection: ltr + languageName: Italiano + weight: 2 + read_more_copy: Leggi di più + menu: + main: + - identifier: blog + name: Blog + weight: 1 + url: /it/posts/ + - identifier: project + name: Progetto + weight: 2 + url: /it/project/ + - identifier: about + name: Info + weight: 3 + url: /it/about/ + +services: + disqus: + shortname: bglug.it + +markup: + highlight: + style: github-dark diff --git a/content/project/_index.md b/content/project/_index.en.md similarity index 100% rename from content/project/_index.md rename to content/project/_index.en.md