commit 0bb1e1f36a5c9b181f192f0ae41510093630e0e8 Author: Storozhenko Evgeny Vladimirovich aka kpa39l Date: Sat Jan 31 23:15:47 2026 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..66db006 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/public/ +.DS_Store +Thumbs.db \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..89af1b0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/PaperMod"] + path = themes/PaperMod + url = https://github.com/adityatelange/hugo-PaperMod.git diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/content/posts/test-post/index.md b/content/posts/test-post/index.md new file mode 100644 index 0000000..9c8ff03 --- /dev/null +++ b/content/posts/test-post/index.md @@ -0,0 +1,26 @@ +--- +title: "Тестовая статья" +date: 2026-01-31T22:45:00+03:00 +draft: false +--- + +# Тестовая статья + +Это пример статьи в формате bundle. В этом формате все связанные файлы (изображения, код и т.д.) находятся в одной папке с основным файлом. + +## Блок кода + +```python +def hello_world(): + print("Привет, мир!") + +# Это важно для подсветки синтаксиса +``` + +## Изображения + +![Alt текст](image.jpg) + +## Заключение + +Формат bundle позволяет удобно организовывать статьи и связанные с ними ресурсы в одной директории. \ No newline at end of file diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..a0aefc6 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,73 @@ +baseURL = 'https://dedinit.ru/' +languageCode = 'ru-ru' +title = 'dedinit.ru' +theme = 'PaperMod' + +# Включаем bundle хранение статей +disableKinds = ['taxonomy'] +preserveTaxonomyNames = true + +[params] + env = "production" + title = "dedinit.ru" + description = "Блог о программировании и технологиях" + keywords = ["блог", "программирование", "технологии"] + author = "Author" + + # Настройки PaperMod + defaultTheme = "auto" + disableThemeToggle = false + ShowShareButtons = false + ShareButtons = ["telegram", "twitter", "linkedin", "reddit"] + ShowReadingTime = true + ShowPostNavLinks = true + ShowBreadCrumbs = true + ShowCodeCopyButtons = true + disableSpecial1 = false + disableSpecial2 = false + disableSpecial3 = false + + # Настройки для комментариев (если понадобится) + # utterancesRepo = "" + # utterancesTheme = "preferred-color-scheme" + + # Отключаем Google Analytics, т.к. partial отсутствует + # googleAnalytics = "" + + # Убираем использование .Site.Social, так как устарело + # Social = {twitter = "username"} + +[outputs] + home = ["HTML", "RSS"] + page = ["HTML"] + section = ["HTML", "RSS"] + taxonomy = ["HTML", "RSS"] + term = ["HTML", "RSS"] + +[taxonomies] + category = "categories" + tag = "tags" + +[markup] + [markup.highlight] + style = "github-dark" + lineNos = true + tabWidth = 4 + +[menu] + [[menu.main]] + name = "Главная" + url = "/" + weight = 10 + [[menu.main]] + name = "Архив" + url = "/posts/" + weight = 20 + [[menu.main]] + name = "Категории" + url = "/categories/" + weight = 30 + [[menu.main]] + name = "Теги" + url = "/tags/" + weight = 40 diff --git a/themes/PaperMod b/themes/PaperMod new file mode 160000 index 0000000..a2eb47b --- /dev/null +++ b/themes/PaperMod @@ -0,0 +1 @@ +Subproject commit a2eb47bb4b805116dcd34c1605d39835121f8dbe