From 3a45fb2707c316f8d85fd7989d8a78bce02526cc Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Thu, 11 Jan 2024 23:49:58 +0100 Subject: [PATCH] Update blog structure for multilanguage --- content-en/_index.md => content/_index.en.md | 0 content/{_index.md => _index.es.md} | 0 content/blog/{_index.md => _index.es.md} | 0 content-en/blog/hola-mundo.md => content/blog/hola-mundo.en.md | 1 + content/blog/{hola-mundo.md => hola-mundo.es.md} | 0 hugo.yaml | 3 +-- 6 files changed, 2 insertions(+), 2 deletions(-) rename content-en/_index.md => content/_index.en.md (100%) rename content/{_index.md => _index.es.md} (100%) rename content/blog/{_index.md => _index.es.md} (100%) rename content-en/blog/hola-mundo.md => content/blog/hola-mundo.en.md (99%) rename content/blog/{hola-mundo.md => hola-mundo.es.md} (100%) diff --git a/content-en/_index.md b/content/_index.en.md similarity index 100% rename from content-en/_index.md rename to content/_index.en.md diff --git a/content/_index.md b/content/_index.es.md similarity index 100% rename from content/_index.md rename to content/_index.es.md diff --git a/content/blog/_index.md b/content/blog/_index.es.md similarity index 100% rename from content/blog/_index.md rename to content/blog/_index.es.md diff --git a/content-en/blog/hola-mundo.md b/content/blog/hola-mundo.en.md similarity index 99% rename from content-en/blog/hola-mundo.md rename to content/blog/hola-mundo.en.md index 2094131..1dccd54 100644 --- a/content-en/blog/hola-mundo.md +++ b/content/blog/hola-mundo.en.md @@ -1,5 +1,6 @@ --- title: 'Hello World' +slug: hello-world date: 2024-01-05T19:11:17+01:00 draft: false --- diff --git a/content/blog/hola-mundo.md b/content/blog/hola-mundo.es.md similarity index 100% rename from content/blog/hola-mundo.md rename to content/blog/hola-mundo.es.md diff --git a/hugo.yaml b/hugo.yaml index a23572e..b1dc14f 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -5,6 +5,7 @@ title: ctrlz theme: hugo-bearcub copyright: CC BY-SA 4.0 defaultContentLanguage: es +contentDir: content disableHugoGeneratorInject: true enableEmoji: true @@ -19,7 +20,6 @@ languages: title: ctrlz languageName: ESP 🇪🇸 LanguageCode: es - contentDir: content params: madeWith: 'Hecho con :heart_decoration: y Open Source' menus: @@ -34,7 +34,6 @@ languages: title: ctrlz languageName: ENG 🇬🇧 LanguageCode: en - contentDir: content-en params: madeWith: 'Made with :heart_decoration: and Open Source' menus: