diff --git a/archetypes/default.md b/archetypes/default.md index 638a420..bea6faa 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,8 +1,8 @@ -+++ -title = '{{ replace .File.ContentBaseName "-" " " | title }}' -description = "" -date = "{{ .Date }}" -author = "cuqmbr" -tags = ["", ""] -draft = true -+++ +--- +title: '{{ replace .File.ContentBaseName "-" " " | title }}' +description: "" +date: "{{ .Date }}" +author: "cuqmbr" +tags: ["", ""] +draft: true +--- diff --git a/content/_index.en.md b/content/_index.en.md index 612bf9a..89628ba 100644 --- a/content/_index.en.md +++ b/content/_index.en.md @@ -1,6 +1,6 @@ -+++ -title = 'Home' -+++ +--- +title: Home +--- # Dan Nazarko aka cuqmbr diff --git a/content/_index.ru.md b/content/_index.ru.md index dbcb4ff..d81aae3 100644 --- a/content/_index.ru.md +++ b/content/_index.ru.md @@ -1,6 +1,6 @@ -+++ -title = 'Home' -+++ +--- +title: Home +--- # Данил Назарько aka cuqmbr diff --git a/content/contact/_index.en.md b/content/contact.en.md similarity index 96% rename from content/contact/_index.en.md rename to content/contact.en.md index 1c05009..b301e87 100644 --- a/content/contact/_index.en.md +++ b/content/contact.en.md @@ -1,6 +1,6 @@ -+++ -title = 'Contact' -+++ +--- +title: Contact +--- # Contact diff --git a/content/contact/_index.ru.md b/content/contact.ru.md similarity index 95% rename from content/contact/_index.ru.md rename to content/contact.ru.md index 98df149..e896447 100644 --- a/content/contact/_index.ru.md +++ b/content/contact.ru.md @@ -1,6 +1,6 @@ -+++ -title = 'Контакты' -+++ +--- +title: Контакты +--- # Контакты diff --git a/content/donate/_index.en.md b/content/donate.en.md similarity index 96% rename from content/donate/_index.en.md rename to content/donate.en.md index b76ad02..d550017 100644 --- a/content/donate/_index.en.md +++ b/content/donate.en.md @@ -1,8 +1,6 @@ -+++ -title = 'Donate' -+++ - -# Donate +--- +title: Donate +--- ## Crypto diff --git a/content/donate/_index.ru.md b/content/donate.ru.md similarity index 94% rename from content/donate/_index.ru.md rename to content/donate.ru.md index c1cf720..83d5285 100644 --- a/content/donate/_index.ru.md +++ b/content/donate.ru.md @@ -1,8 +1,6 @@ -+++ -title = 'Поддержать' -+++ - -# Поддержать +--- +title: Поддержать +--- ## Крипта diff --git a/content/posts/hello-webpage/index.en.md b/content/posts/hello-webpage/index.en.md index 3d66351..a8f8723 100644 --- a/content/posts/hello-webpage/index.en.md +++ b/content/posts/hello-webpage/index.en.md @@ -1,10 +1,12 @@ -+++ -title = "Hello Webpage" -description = "Refreshing my personal website with the help of Hugo." -date = "2024-11-25T15:44:26+02:00" -author = "cuqmbr" -tags = ["update", "cuqmbr.xyz"] -+++ +--- +title: Hello Webpage +description: Refreshing my personal website with the help of Hugo. +date: 2024-11-25T15:44:26+02:00 +author: cuqmbr +tags: + - update + - cuqmbr.xyz +--- For the past year my webpage looked, to put it midly, ugly. It is shown on the image below. diff --git a/content/posts/hello-webpage/index.ru.md b/content/posts/hello-webpage/index.ru.md index 66c51bb..bd97357 100644 --- a/content/posts/hello-webpage/index.ru.md +++ b/content/posts/hello-webpage/index.ru.md @@ -1,10 +1,12 @@ -+++ -title = "Привет Веб-страница" -description = "Обновление моей Веб-страницы с помощью Hugo." -date = "2024-11-25T15:44:26+02:00" -author = "cuqmbr" -tags = ["update", "cuqmbr.xyz"] -+++ +--- +title: Привет Веб-страница +description: Обновление моей Веб-страницы с помощью Hugo. +date: 2024-11-25T15:44:26+02:00 +author: cuqmbr +tags: + - update + - cuqmbr.xyz +--- В течение прошлого года моя веб-страница выглядела, мягко говоря, уродливо. Это показано на изображении ниже. diff --git a/content/services/_index.en.md b/content/services.en.md similarity index 95% rename from content/services/_index.en.md rename to content/services.en.md index 2025405..fb2c0d8 100644 --- a/content/services/_index.en.md +++ b/content/services.en.md @@ -1,6 +1,6 @@ -+++ -title = 'Services' -+++ +--- +title: Services +--- # Services diff --git a/content/services/_index.ru.md b/content/services.ru.md similarity index 95% rename from content/services/_index.ru.md rename to content/services.ru.md index f339225..7ea331b 100644 --- a/content/services/_index.ru.md +++ b/content/services.ru.md @@ -1,6 +1,6 @@ -+++ -title = 'Сервисы' -+++ +--- +title: Сервисы +--- # Сервисы diff --git a/hugo.toml b/hugo.toml deleted file mode 100644 index 2b80096..0000000 --- a/hugo.toml +++ /dev/null @@ -1,151 +0,0 @@ -baseURL = 'https://cuqmbr.xyz/' -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). - # contentTypeName = "posts" - contentTypeName = "null" # Prevent posts showing on the root page - - # if you set this to 0, only submenu trigger will be visible - showMenuItems = 4 - - # show selector to switch language - showLanguageSelector = true - - # set theme to full screen width - # fullWidthTheme = false - - # center theme with default width - centerTheme = true - - # 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 = 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 = true - # enableGitInfo = true - - 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" - - # whether to show a page's estimated reading time - # readingTime = true # default: false - - # whether to show a table of contents - # can be overridden in a page's front-matter - # Toc = true # default: false - - # set title for the table of contents - # can be overridden in a page's front-matter - # TocTitle = "Table of Contents" # default - -[languages] - [languages.en] - languageCode = "en" - languageName = "🇬🇧 English" - languageDirection = "ltr" - weight = 0 - disabled = false - title = "cuqmbr's Webpage" - - [languages.en.params] - subtitle = "" - owner = "" - keywords = "" - copyright = "" - menuMore = "Show more" - readMore = "Read more" - readOtherPosts = "Read other posts" - newerPosts = "Newer posts" - olderPosts = "Older posts" - missingContentMessage = "Page not found" - missingBackButtonLabel = "Back to home page" - minuteReadingTime = "min read" - words = "words" - - [languages.en.params.logo] - logoText = "cuqmbr's Webpage" - logoHomeLink = "/" - - [languages.en.menu] - [[languages.en.menu.main]] - identifier = "posts" - name = "Blog Posts" - url = "/en/posts" - weight = 10 - [[languages.en.menu.main]] - identifier = "contact" - name = "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 = "/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/hugo.yaml b/hugo.yaml new file mode 100644 index 0000000..2212d53 --- /dev/null +++ b/hugo.yaml @@ -0,0 +1,132 @@ +# b09f47aae7bc7f2fdeab523d15d2a8d217c4dad1 + +baseURL: https://cuqmbr.xyz/ +theme: terminal + +enableGitInfo: true +copyright: 'Powered by Hugo' + +defaultContentLanguage: en +defaultContentLanguageInSubdir: true + +languages: + en: + languageCode: en + languageName: 🇬🇧 English + languageDirection: ltr + weight: 10 + disabled: false + title: "cuqmbr's Webpage" + + params: + subtitle: "" + owner: "" + keywords: "" + copyright: "" + menuMore: Show more + readMore: Read more + readOtherPosts: Read other posts + newerPosts: Newer posts + olderPosts: Older posts + missingContentMessage: Page not found + missingBackButtonLabel: Back to home page + minuteReadingTime: min read + words: words + + logo: + logoText: "cuqmbr's Webpage" + logoHomeLink: /en + + menu: + main: + - identifier: posts + name: Blog Posts + pageRef: /posts + weight: 10 + - identifier: contact + name: Contact + pageRef: /contact + weight: 20 + - identifier: services + name: Services + pageRef: /services + weight: 30 + - identifier: donate + name: Donate + pageRef: /donate + weight: 40 + + ru: + languageCode: ru + languageName: 🇷🇺 Русский + languageDirection: ltr + weight: 20 + disabled: false + title: "Веб-страница cuqmbr'а" + + params: + subtitle: "" + owner: "" + keywords: "" + copyright: "" + menuMore: Показать больше + readMore: Читать дальше + readOtherPosts: Читать другие посты + newerPosts: Новые посты + olderPosts: Старые посты + missingContentMessage: Страница не найдена + missingBackButtonLabel: На главную + minuteReadingTime: минут к прочтению + words: слов + + logo: + logoText: "Веб-страница cuqmbr'а" + logoHomeLink: /ru + + menu: + main: + - identifier: posts + name: Блог + pageRef: /posts + weight: 10 + - identifier: contact + name: Контакты + pageRef: /contact + weight: 20 + - identifier: services + name: Сервисы + pageRef: /services + weight: 30 + - identifier: donate + name: Поддержать + pageRef: /donate + weight: 40 + +params: + # dir name of your main content (default is `content/posts`). + # the list of set content will show up on your index page (baseurl). + # contentTypeName: "posts" + contentTypeName: "null" # Prevent posts showing on the root page + showMenuItems: 4 + showLanguageSelector: true + fullWidthTheme: false + centerTheme: true + + # 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 + + # 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 + + 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" + + readingTime: false + + Toc: false + TocTitle: "Table of Contents"