1
0

change configuration format from toml to yaml

This commit is contained in:
cuqmbr 2025-05-17 18:54:09 +03:00
parent 26f6f1a17f
commit 53c37f52f9
Signed by: cuqmbr
GPG Key ID: 0AA446880C766199
13 changed files with 182 additions and 201 deletions

View File

@ -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
---

View File

@ -1,6 +1,6 @@
+++
title = 'Home'
+++
---
title: Home
---
# Dan Nazarko aka cuqmbr

View File

@ -1,6 +1,6 @@
+++
title = 'Home'
+++
---
title: Home
---
# Данил Назарько aka cuqmbr

View File

@ -1,6 +1,6 @@
+++
title = 'Contact'
+++
---
title: Contact
---
# Contact

View File

@ -1,6 +1,6 @@
+++
title = 'Контакты'
+++
---
title: Контакты
---
# Контакты

View File

@ -1,8 +1,6 @@
+++
title = 'Donate'
+++
# Donate
---
title: Donate
---
## Crypto

View File

@ -1,8 +1,6 @@
+++
title = 'Поддержать'
+++
# Поддержать
---
title: Поддержать
---
## Крипта

View File

@ -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.

View File

@ -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
---
В течение прошлого года моя веб-страница выглядела, мягко говоря, уродливо. Это показано на изображении ниже.

View File

@ -1,6 +1,6 @@
+++
title = 'Services'
+++
---
title: Services
---
# Services

View File

@ -1,6 +1,6 @@
+++
title = 'Сервисы'
+++
---
title: Сервисы
---
# Сервисы

151
hugo.toml
View File

@ -1,151 +0,0 @@
baseURL = 'https://cuqmbr.xyz/'
languageCode = 'en'
theme = 'terminal'
copyright = 'Powered by <a href="https://gohugo.io">Hugo</a>'
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

132
hugo.yaml Normal file
View File

@ -0,0 +1,132 @@
# b09f47aae7bc7f2fdeab523d15d2a8d217c4dad1
baseURL: https://cuqmbr.xyz/
theme: terminal
enableGitInfo: true
copyright: 'Powered by <a href="https://gohugo.io">Hugo</a>'
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"