From 2d211f840b07773d837ab9b904f4f5bb89f035c7 Mon Sep 17 00:00:00 2001 From: PedroEdiaz Date: Mon, 16 Mar 2026 14:28:34 -0600 Subject: [PATCH] Divide by languages --- .woodpecker.yml | 2 +- config.toml | 14 ++++++++++++-- content/{essay => en}/buddhist-mental-health.md | 0 content/{poetry => es}/otono.md | 0 4 files changed, 13 insertions(+), 3 deletions(-) rename content/{essay => en}/buddhist-mental-health.md (100%) rename content/{poetry => es}/otono.md (100%) diff --git a/.woodpecker.yml b/.woodpecker.yml index ba1d419..88594ca 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,7 +2,7 @@ steps: build: image: hugomods/hugo:go-git-0.150.1 commands: - - hugo + - hugo --buildFuture when: event: push branch: main diff --git a/config.toml b/config.toml index daafc9c..6c80574 100644 --- a/config.toml +++ b/config.toml @@ -1,10 +1,20 @@ baseURL = "/" -languageCode = "en-us" title = "Pedro E. Díaz" enableGitInfo = true - theme = "PaperMod" + +[languages] + [languages.en] + weight = 1 + contentDir = "content/en" + languageName = "English" + + [languages.es] + weight = 2 + contentDir = "content/es" + languageName = "Español" + [params] defaultTheme = "auto" ShowShareButtons = true diff --git a/content/essay/buddhist-mental-health.md b/content/en/buddhist-mental-health.md similarity index 100% rename from content/essay/buddhist-mental-health.md rename to content/en/buddhist-mental-health.md diff --git a/content/poetry/otono.md b/content/es/otono.md similarity index 100% rename from content/poetry/otono.md rename to content/es/otono.md