From cfd5c44611871ce818bff042c6ca4e3ade17291a Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Mon, 8 Jan 2024 16:25:12 +0100 Subject: [PATCH] Adds english support --- content-en/_index.md | 6 ++++ hugo.yaml | 34 +++++++++++++------ themes/hugo-bearcub/layouts/partials/nav.html | 2 +- 3 files changed, 31 insertions(+), 11 deletions(-) create mode 100644 content-en/_index.md diff --git a/content-en/_index.md b/content-en/_index.md new file mode 100644 index 0000000..5e4671c --- /dev/null +++ b/content-en/_index.md @@ -0,0 +1,6 @@ +## Hi! :raising_hand_man: + +Soon this text will be replaced with a proper introduction, but unitl then, happy to see you here :relaxed: + +- Mastodon +- [Github](https://github.com/mgdelacroix) diff --git a/hugo.yaml b/hugo.yaml index adc74cd..a23572e 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -17,20 +17,34 @@ markup: languages: es: title: ctrlz - languageName: es-ES + languageName: ESP 🇪🇸 LanguageCode: es contentDir: content + params: + madeWith: 'Hecho con :heart_decoration: y Open Source' + menus: + main: + - name: Inicio + pageRef: '/' + weight: 10 + - name: Blog + pageRef: '/blog' + weight: 20 + en: + title: ctrlz + languageName: ENG 🇬🇧 + LanguageCode: en + contentDir: content-en params: madeWith: 'Made with :heart_decoration: and Open Source' - -menus: - main: - - name: Inicio - pageRef: '/' - weight: 10 - - name: Blog - pageRef: '/blog' - weight: 20 + menus: + main: + - name: Home + pageRef: '/' + weight: 10 + - name: Blog + pageRef: '/blog' + weight: 20 params: contact: diff --git a/themes/hugo-bearcub/layouts/partials/nav.html b/themes/hugo-bearcub/layouts/partials/nav.html index 5f40267..702f7bb 100644 --- a/themes/hugo-bearcub/layouts/partials/nav.html +++ b/themes/hugo-bearcub/layouts/partials/nav.html @@ -1,7 +1,7 @@ {{ range .Site.Menus.main.ByWeight }} {{ .Name }} {{ end }} -RSS +RSS {{ $translations := dict }}