From c2500516cb8f9839efce050297f624c8dffbd71d Mon Sep 17 00:00:00 2001 From: Oleh Omelchenko Date: Fri, 26 Jul 2024 02:59:46 +0300 Subject: [PATCH] add multi-lang --- hugo.yaml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/hugo.yaml b/hugo.yaml index ec3093e..168f231 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,25 +1,49 @@ baseURL: https://olehomelchenko.com/ -languageCode: uk-ua title: Олег Омельченко theme: PaperMod -params: +taxonomies: + category: categories + tag: tags + language: languages +params: disableThemeToggle: true env: production + author: Олег Омельченко + +defaultContentLanguage: uk +languages: + uk: + disabled: false + languageCode: uk-UA + languageName: Українська + title: Олег Омельченко + weight: 1 + en: + disabled: false + languageCode: en-US + languageName: English + params: + author: Oleh Omelchenko + title: Oleh Omelchenko + weight: 2 menu: main: - identifier: posts name: posts url: /posts/ - weight: 5 + weight: 50 - identifier: tils name: TILs url: /til/ weight: 10 + - identifier: categories + name: Categories + url: /categories/ + weight: 10 - identifier: tags name: tags url: /tags/ weight: 20 -