From 440fb374fb63193a12bdc2d59a16fb73d59281a4 Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Fri, 16 May 2025 13:17:33 +0300 Subject: [PATCH] add russian localization --- archetypes/default.md | 7 +- content/{_index.md => _index.en.md} | 5 +- content/_index.ru.md | 15 +++ content/{contact.md => contact/_index.en.md} | 16 ++- content/contact/_index.ru.md | 15 +++ content/donate/{index.md => _index.en.md} | 8 +- content/donate/_index.ru.md | 33 ++++++ .../hello-webpage/{index.md => index.en.md} | 8 +- content/posts/hello-webpage/index.ru.md | 19 ++++ .../{services.md => services/_index.en.md} | 2 +- content/services/_index.ru.md | 9 ++ hugo.toml | 104 +++++++++++++----- static/{ => files}/me@cuqmbr.xyz.gpg.pub | 0 {content => static/images}/donate/btc-qr.svg | 0 {content => static/images}/donate/xmr-qr.svg | 0 .../posts/hello-webpage/old-webpage.webp | Bin 16 files changed, 191 insertions(+), 50 deletions(-) rename content/{_index.md => _index.en.md} (71%) create mode 100644 content/_index.ru.md rename content/{contact.md => contact/_index.en.md} (58%) create mode 100644 content/contact/_index.ru.md rename content/donate/{index.md => _index.en.md} (69%) create mode 100644 content/donate/_index.ru.md rename content/posts/hello-webpage/{index.md => index.en.md} (68%) create mode 100644 content/posts/hello-webpage/index.ru.md rename content/{services.md => services/_index.en.md} (64%) create mode 100644 content/services/_index.ru.md rename static/{ => files}/me@cuqmbr.xyz.gpg.pub (100%) rename {content => static/images}/donate/btc-qr.svg (100%) rename {content => static/images}/donate/xmr-qr.svg (100%) rename {content => static/images}/posts/hello-webpage/old-webpage.webp (100%) diff --git a/archetypes/default.md b/archetypes/default.md index 25b6752..638a420 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,5 +1,8 @@ +++ -date = '{{ .Date }}' -draft = true title = '{{ replace .File.ContentBaseName "-" " " | title }}' +description = "" +date = "{{ .Date }}" +author = "cuqmbr" +tags = ["", ""] +draft = true +++ diff --git a/content/_index.md b/content/_index.en.md similarity index 71% rename from content/_index.md rename to content/_index.en.md index 5e8ac25..612bf9a 100644 --- a/content/_index.md +++ b/content/_index.en.md @@ -4,12 +4,11 @@ title = 'Home' # Dan Nazarko aka cuqmbr -Linux sysadmin and a privacy enthusiast - +Linux sysadmin and a privacy enthusiast, 21-years-old, Software Engineering student. # Welcome to My Webpage -Hi! I am a 21-years-old Software Engineering student and this is my little website to host my interests in. +This is my little website to host my interests in. I am currently interested in Linux system administration, DevOps engineering and privacy-respecting tech. diff --git a/content/_index.ru.md b/content/_index.ru.md new file mode 100644 index 0000000..ffcfa04 --- /dev/null +++ b/content/_index.ru.md @@ -0,0 +1,15 @@ ++++ +title = 'Home' ++++ + +# Данил Назарько aka cuqmbr + +Системный администратор, возвраст: 21, студент факультета Програмной Инженерии. + +# Добро пожаловать на мою веб-страницу + +Это мой небольшой веб-сайт, на котором я размещаю свои интересы. + +В настоящее время я интересуюсь системным администрированием Linux и DevOps разработкой и технологиями. + +Ознакомьтесь развёрнутыми мной [сервисам](/services). Их не так много, но я планирую развернуть больше. Некоторые из них могут оказаться полезными, например: [SearxNG](https://searxng.cuqmbr.xyz). diff --git a/content/contact.md b/content/contact/_index.en.md similarity index 58% rename from content/contact.md rename to content/contact/_index.en.md index a69a62c..ad79601 100644 --- a/content/contact.md +++ b/content/contact/_index.en.md @@ -3,15 +3,13 @@ title = 'Contact' +++ - Email: me at domain.tld of this site - - PGP key: [me@cuqmbr.xyz.gpg.pub](/me@cuqmbr.xyz.gpg.pub) - - Fingerprint: `FF8B 1DD4 EA6F F627 144A 454C E6B2 2F45 1C32 7A98` - - All legitimate emails from me will be signed with my PGP key -- XMPP: [cuqmbr@07f.de](xmpp:cuqmbr@07f.de?omemo-sid-750832825=4e91a5ad01a0f2184249fbfd224fe5e56cfc56a497444ffdbfa951da5a79557a;omemo-sid-1276295498=f6e8cdd40426779e18aec861705ae433c5ac767af92459199a934ae3363dd037) -- Matrix: [@cuqmbr:midov.pl](https://matrix.to/#/@cuqmbr:midov.pl) - + - PGP key: [me@cuqmbr.xyz.gpg.pub](/files/me@cuqmbr.xyz.gpg.pub); + - Fingerprint: `FF8B 1DD4 EA6F F627 144A 454C E6B2 2F45 1C32 7A98`; + - All legitimate emails from me will be signed with my PGP key; +- XMPP: [cuqmbr@07f.de](xmpp:cuqmbr@07f.de?omemo-sid-750832825=4e91a5ad01a0f2184249fbfd224fe5e56cfc56a497444ffdbfa951da5a79557a;omemo-sid-1276295498=f6e8cdd40426779e18aec861705ae433c5ac767af92459199a934ae3363dd037); +- Matrix: [@cuqmbr:midov.pl](https://matrix.to/#/@cuqmbr:midov.pl); +- Telegram: [@cuqmbr](https://telegram.me/cuqmbr). # Links -- Git: https://gitea.cuqmbr.xyz/cuqmbr - - +- Git: https://gitea.cuqmbr.xyz/cuqmbr. diff --git a/content/contact/_index.ru.md b/content/contact/_index.ru.md new file mode 100644 index 0000000..9edae3e --- /dev/null +++ b/content/contact/_index.ru.md @@ -0,0 +1,15 @@ ++++ +title = 'Контакты' ++++ + +- Email: me собака домен.домен-верхнего-уровня этого сайта; + - Открытый ключ PGP: [me@cuqmbr.xyz.gpg.pub](/files/me@cuqmbr.xyz.gpg.pub); + - Отпечаток: `FF8B 1DD4 EA6F F627 144A 454C E6B2 2F45 1C32 7A98`; + - Все письма отправленные мной будут подписаны моим ключём PGP; +- XMPP: [cuqmbr@07f.de](xmpp:cuqmbr@07f.de?omemo-sid-750832825=4e91a5ad01a0f2184249fbfd224fe5e56cfc56a497444ffdbfa951da5a79557a;omemo-sid-1276295498=f6e8cdd40426779e18aec861705ae433c5ac767af92459199a934ae3363dd037); +- Matrix: [@cuqmbr:midov.pl](https://matrix.to/#/@cuqmbr:midov.pl); +- Telegram: [@cuqmbr](https://telegram.me/cuqmbr). + +# Ссылки + +- Git: https://gitea.cuqmbr.xyz/cuqmbr. diff --git a/content/donate/index.md b/content/donate/_index.en.md similarity index 69% rename from content/donate/index.md rename to content/donate/_index.en.md index 46e6d31..06a0792 100644 --- a/content/donate/index.md +++ b/content/donate/_index.en.md @@ -12,7 +12,7 @@ title = 'Donate' - Address in QR-code: -{{< image src="xmr-qr.svg" alt="Monero (XMR) address encoded into QR-code." position="center" style="height: 256px;" >}} +{{< image src="/images/donate/xmr-qr.svg" alt="Monero (XMR) address encoded into QR-code." position="center" style="height: 256px;" >}} ### Bitcoin (BTC) @@ -22,13 +22,13 @@ title = 'Donate' - Address in QR-code: -{{< image src="btc-qr.svg" alt="Bitcoin (BTC) address encoded into QR-code." position="center" style="height: 256px;" >}} +{{< image src="/images/donate/btc-qr.svg" alt="Bitcoin (BTC) address encoded into QR-code." position="center" style="height: 256px;" >}} -### Referral Links +## Referral Links [AEZA](https://aeza.net/?ref=495596) - cloud hosting provider with unmetered bandwidth and a fair amount of payment options, including crypto. -### Note +## Note All crypto I get is held safe and with self-custody. diff --git a/content/donate/_index.ru.md b/content/donate/_index.ru.md new file mode 100644 index 0000000..4bf37e3 --- /dev/null +++ b/content/donate/_index.ru.md @@ -0,0 +1,33 @@ ++++ +title = 'Поддержать' ++++ + +## Крипта + +### Monero (XMR) + +- Open Alias: donate@cuqmbr.xyz + +- Адрес: 8ArvNWx6VvU4vmDbi4cbkWCLSTNMniwcPTEkM79ZnrngX7PK91iqwgQg4Npa9jHd963WeLrSdTTxi5kZ1KbYjmTSB9zsGT1 + +- QR-код: + +{{< image src="/images/donate/xmr-qr.svg" alt="Адрес Monero (XMR) закодированный в QR-код." position="center" style="height: 256px;" >}} + +### Bitcoin (BTC) + +- Open Alias: donate@cuqmbr.xyz + +- Адрес: bc1q9dt2wnjgtzj5xve9w943h8zdwlxame8hyju69r + +- QR-код: + +{{< image src="/images/donate/btc-qr.svg" alt="Адрес Bitcoin (BTC) закодированный в QR-код." position="center" style="height: 256px;" >}} + +## Реферальные ссылки + +[AEZA](https://aeza.net/?ref=495596) - облачный хостинг провайдер с неограниченным сетевым трафиком и большим количеством вариантов оплаты. + +## Примечание + +Если вы воспользовались какой-либо из реферальных ссылок, также можете создать свою и порекомендовать друзьям для получения бонусов. diff --git a/content/posts/hello-webpage/index.md b/content/posts/hello-webpage/index.en.md similarity index 68% rename from content/posts/hello-webpage/index.md rename to content/posts/hello-webpage/index.en.md index 21c6305..3d66351 100644 --- a/content/posts/hello-webpage/index.md +++ b/content/posts/hello-webpage/index.en.md @@ -8,12 +8,12 @@ tags = ["update", "cuqmbr.xyz"] For the past year my webpage looked, to put it midly, ugly. It is shown on the image below. -{{< image src="old-webpage.webp" alt="A list of services and contacts with default font and white background. No stylyng applied, html only." >}} +{{< image src="/images/posts/hello-webpage/old-webpage.webp" alt="A list of services and contacts with default font and white background. No stylyng applied, html only." >}} As you noticed, now it changed. I decided to use [Hugo](https://gohugo.io) static site generator to build it for it's simplicity over content management systems like WordPress or Drupal. [Terminal](https://github.com/panr/terminal-css/) theme helped me to get up and running quickly. Planned content of the website: -- Updates related to hosted services; -- Occasional thoughts on some topics; -- Maybe guides and tutorials. +- updates related to hosted services; +- occasional thoughts on some topics; +- maybe guides and tutorials. diff --git a/content/posts/hello-webpage/index.ru.md b/content/posts/hello-webpage/index.ru.md new file mode 100644 index 0000000..66c51bb --- /dev/null +++ b/content/posts/hello-webpage/index.ru.md @@ -0,0 +1,19 @@ ++++ +title = "Привет Веб-страница" +description = "Обновление моей Веб-страницы с помощью Hugo." +date = "2024-11-25T15:44:26+02:00" +author = "cuqmbr" +tags = ["update", "cuqmbr.xyz"] ++++ + +В течение прошлого года моя веб-страница выглядела, мягко говоря, уродливо. Это показано на изображении ниже. + +{{< image src="/images/posts/hello-webpage/old-webpage.webp" alt="Список сервисов и контактов со шрифтом по умолчанию и белым фоном. Страница html без применения стилей css." >}} + +Как вы заметили, теперь все изменилось. Я решил использовать статический генератор сайтов [Hugo](https://gohugo.io) из-за его простоты по сравнению с системами управления контентом, такими как WordPress или Drupal. Тема [Terminal](https://github.com/panr/terminal-css/) помогла мне быстро приступить к работе. + +Планируемое содержимое сайта: + +- обновления, связанные с развёрнутыми сервисами; +- мысли по некоторым темам; +- возможно, руководства и обучающие материалы. diff --git a/content/services.md b/content/services/_index.en.md similarity index 64% rename from content/services.md rename to content/services/_index.en.md index ed45233..359e705 100644 --- a/content/services.md +++ b/content/services/_index.en.md @@ -4,6 +4,6 @@ title = 'Services' - [Gitea](https://gitea.cuqmbr.xyz) - painless, self-hosted, all-in-one software development service. It includes Git hosting, code review, team collaboration, package registry, and CI/CD. It is similar to GitHub, Bitbucket and GitLab. -- [SearxNG](https://searxng.cuqmbr.xyz) - SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled. +- [SearxNG](https://searxng.cuqmbr.xyz) - free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled. - [Uptime Kuma](https://status.cuqmbr.xyz) - an easy-to-use self-hosted monitoring tool. diff --git a/content/services/_index.ru.md b/content/services/_index.ru.md new file mode 100644 index 0000000..b221633 --- /dev/null +++ b/content/services/_index.ru.md @@ -0,0 +1,9 @@ ++++ +title = 'Сервисы' ++++ + +- [Gitea](https://gitea.cuqmbr.xyz) - сервис для разработки программного обеспечения. Он включает функционал хостинга Git репозиториев, реестр пакетов и CI/CD, создан для совместной работы над проектами, . Аналог GitHub, Bitbucket и GitLab. + +- [SearxNG](https://searxng.cuqmbr.xyz) - это метапоисковая система, которая объединяет результаты из различных поисковых сервисов и баз данных. Пользователи не отслеживаются и не профилируются. + +- [Uptime Kuma](https://status.cuqmbr.xyz) - простой в использовании инструмент мониторинга инфраструктуры. diff --git a/hugo.toml b/hugo.toml index d727558..c859183 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,8 +1,12 @@ baseURL = 'https://cuqmbr.xyz/' -languageCode = 'en-us' +languageCode = 'en' theme = 'terminal' copyright = 'Powered by Hugo' +defaultContentLanguage = 'en' +defaultContentLanguageInSubdir = true +disableDefaultLanguageRedirect = false + [params] # dir name of your main content (default is `content/posts`). # the list of set content will show up on your index page (baseurl). @@ -10,13 +14,13 @@ copyright = 'Powered by Hugo' contentTypeName = "null" # Prevent posts showing on the root page # if you set this to 0, only submenu trigger will be visible - showMenuItems = 5 + showMenuItems = 4 # show selector to switch language - showLanguageSelector = false + showLanguageSelector = true # set theme to full screen width - fullWidthTheme = false + # fullWidthTheme = false # center theme with default width centerTheme = true @@ -24,13 +28,14 @@ copyright = 'Powered by Hugo' # if your resource directory contains an image called `cover.(jpg|png|webp)`, # then the file will be used as a cover automatically. # With this option you don't have to put the `cover` param in a front-matter. - autoCover = true + autoCover = false # set post to show the last updated # If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated - showLastUpdated = false + showLastUpdated = true + enableGitInfo = true - dateFormat = "02-01-2006" + dateFormat = "2006-01-02" # Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author # updatedDatePrefix = "Updated" @@ -46,17 +51,13 @@ copyright = 'Powered by Hugo' # can be overridden in a page's front-matter # TocTitle = "Table of Contents" # default - -[params.twitter] - # set Twitter handles for Twitter cards - # see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution - # do not include @ - creator = "" - site = "" - [languages] [languages.en] - languageName = "🇬🇧 EN" + languageCode = "en" + languageName = "🇬🇧 English" + languageDirection = "ltr" + weight = 0 + disabled = false title = "cuqmbr's Webpage" [languages.en.params] @@ -79,23 +80,72 @@ copyright = 'Powered by Hugo' logoHomeLink = "/" [languages.en.menu] - # [[languages.en.menu.main]] - # identifier = "about" - # name = "About" - # url = "/about" - [[languages.en.menu.main]] - identifier = "services" - name = "Services" - url = "/services" [[languages.en.menu.main]] identifier = "posts" name = "Blog Posts" - url = "/posts" + url = "/en/posts" + weight = 10 [[languages.en.menu.main]] identifier = "contact" name = "Contact" - url = "/contact" + url = "/en/contact" + weight = 20 + [[languages.en.menu.main]] + identifier = "services" + name = "Services" + url = "/en/services" + weight = 30 [[languages.en.menu.main]] identifier = "donate" name = "Donate" - url = "/donate" + url = "/en/donate" + weight = 40 + + [languages.ru] + languageCode = "ru" + languageName = "🇷🇺 Русский" + languageDirection = "ltr" + weight = 10 + disabled = false + title = "Веб-страница cuqmbr'а" + + [languages.ru.params] + subtitle = "" + owner = "" + keywords = "" + copyright = "" + menuMore = "Показать больше" + readMore = "Читать дальше" + readOtherPosts = "Читать другие посты" + newerPosts = "Новые посты" + olderPosts = "Старые посты" + missingContentMessage = "Страница не найдена" + missingBackButtonLabel = "На главную" + minuteReadingTime = "минут к прочтению" + words = "слов" + + [languages.ru.params.logo] + logoText = "Веб-страница cuqmbr'а" + logoHomeLink = "/ru" + + [languages.ru.menu] + [[languages.ru.menu.main]] + identifier = "posts" + name = "Блог" + url = "/ru/posts" + weight = 10 + [[languages.ru.menu.main]] + identifier = "contact" + name = "Контакты" + url = "/ru/contact" + weight = 20 + [[languages.ru.menu.main]] + identifier = "services" + name = "Сервисы" + url = "/ru/services" + weight = 30 + [[languages.ru.menu.main]] + identifier = "donate" + name = "Поддержать" + url = "/ru/donate" + weight = 40 diff --git a/static/me@cuqmbr.xyz.gpg.pub b/static/files/me@cuqmbr.xyz.gpg.pub similarity index 100% rename from static/me@cuqmbr.xyz.gpg.pub rename to static/files/me@cuqmbr.xyz.gpg.pub diff --git a/content/donate/btc-qr.svg b/static/images/donate/btc-qr.svg similarity index 100% rename from content/donate/btc-qr.svg rename to static/images/donate/btc-qr.svg diff --git a/content/donate/xmr-qr.svg b/static/images/donate/xmr-qr.svg similarity index 100% rename from content/donate/xmr-qr.svg rename to static/images/donate/xmr-qr.svg diff --git a/content/posts/hello-webpage/old-webpage.webp b/static/images/posts/hello-webpage/old-webpage.webp similarity index 100% rename from content/posts/hello-webpage/old-webpage.webp rename to static/images/posts/hello-webpage/old-webpage.webp