[rulkc] [PATCH 1/7] Add translation infra and move 'ru'

Dmitry Rokosov rockosov at rulkc.org
Wed Sep 9 16:12:06 MSK 2026


Reviewed-by: Dmitry Rokosov <rockosov at rulkc.org>

On Fri, Sep 04, 2026 at 11:54:03AM +0300, Nikita Shubin wrote:
> Add translation infrastructure move all Russian content to 'ru'
> subdirectory and make it default.
> 
> hugo support 2 schemes:
> 
> - named based translation naming i.e. about.en.md
> - directory based translation name i.e. en/abount.md
> 
> Use directory based, as it's more convenient.
> 
> Signed-off-by: Nikita Shubin <nikita.shubin at maquefel.me>
> ---
>  content/{ => ru}/_index.md                          |   0
>  content/{ => ru}/landau-linux/_index.md             |   0
>  content/{ => ru}/landau-linux/maintenance/_index.md |   0
>  content/{ => ru}/open_mic_27_03_2026/_index.md      |   0
>  content/{ => ru}/rulkc.png                          | Bin
>  hugo.yaml                                           |  20 ++++++++++++++++++++
>  6 files changed, 20 insertions(+)
> 
> diff --git a/content/_index.md b/content/ru/_index.md
> similarity index 100%
> rename from content/_index.md
> rename to content/ru/_index.md
> diff --git a/content/landau-linux/_index.md b/content/ru/landau-linux/_index.md
> similarity index 100%
> rename from content/landau-linux/_index.md
> rename to content/ru/landau-linux/_index.md
> diff --git a/content/landau-linux/maintenance/_index.md b/content/ru/landau-linux/maintenance/_index.md
> similarity index 100%
> rename from content/landau-linux/maintenance/_index.md
> rename to content/ru/landau-linux/maintenance/_index.md
> diff --git a/content/open_mic_27_03_2026/_index.md b/content/ru/open_mic_27_03_2026/_index.md
> similarity index 100%
> rename from content/open_mic_27_03_2026/_index.md
> rename to content/ru/open_mic_27_03_2026/_index.md
> diff --git a/content/rulkc.png b/content/ru/rulkc.png
> similarity index 100%
> rename from content/rulkc.png
> rename to content/ru/rulkc.png
> diff --git a/hugo.yaml b/hugo.yaml
> index 407bf68..523e67b 100644
> --- a/hugo.yaml
> +++ b/hugo.yaml
> @@ -9,6 +9,26 @@ footnotereturnlinkcontents: "↩"
>  disableKinds : ["taxonomy", "term"]
>  relativeURLs: true
>  canonifyURLs: false
> +enableSymlinks: true
> +
> +defaultContentLanguage: 'ru'
> +defaultContentLanguageInSubdir: true
> +
> +languages:
> +  ru:
> +    languageName: 'Русский'
> +    contentDir: 'content/ru'
> +    weight: 1
> +    title: 'LANDAU'
> +    params:
> +      description: 'Linux And Neo-Depositorium Associated Unity'
> +  en:
> +    languageName: 'English'
> +    contentDir: 'content/en'
> +    weight: 2
> +    title: 'LANDAU'
> +    params:
> +      description: 'Linux And Neo-Depositorium Associated Unity'
>  
>  permalinks:
>    note: "/note/:year/:month/:day/:slug/"
> 
> -- 
> 2.54.0
> 

-- 
Thank you,
Dmitry



More information about the rulkc mailing list