From eef6475e025fe96a37b39885e34ab32e6c1e35f5 Mon Sep 17 00:00:00 2001 From: Storozhenko Evgeny Vladimirovich aka kpa39l Date: Sat, 18 Apr 2026 10:04:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B0=D0=BB=20=D1=84=D1=80=D0=BE=D0=BD=D1=82=D0=BC=D0=B0=D1=82?= =?UTF-8?q?=D1=82=D0=B5=D1=80=20=D0=B0=D1=80=D1=85=D0=B5=D1=82=D0=B8=D0=BF?= =?UTF-8?q?=D0=B0=D0=BA=20=D0=BD=D0=B0=20yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archetypes/default.md | 29 +++++++------- .../hugo-slugs-archetypes-bundles/index.md | 38 +++++++++---------- 2 files changed, 31 insertions(+), 36 deletions(-) diff --git a/archetypes/default.md b/archetypes/default.md index 7961b4c..fa536c7 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,21 +1,18 @@ --- -date = '{{ .Date }}' -lastmod = '{{ .Date }}' -draft = true -title = '{{ replace .File.ContentBaseName "-" " " | title }}' -slug = '{{ .File.ContentBaseName }}' -description = '' +date: '{{ .Date }}' +lastmod: '{{ .Date }}' +draft: true +title: '{{ replace .File.ContentBaseName "-" " " | title }}' +slug: '{{ .File.ContentBaseName }}' +description: '' -categories = [ - 'uncategorized', -] +categories: + - 'uncategorized' -tags = [ - 'draft', -] +tags: + - 'draft' -keywords = [ - 'hugo', - 'blog' -] +keywords: + - 'hugo' + - blog --- \ No newline at end of file diff --git a/content/posts/hugo-slugs-archetypes-bundles/index.md b/content/posts/hugo-slugs-archetypes-bundles/index.md index 51e662b..032459d 100644 --- a/content/posts/hugo-slugs-archetypes-bundles/index.md +++ b/content/posts/hugo-slugs-archetypes-bundles/index.md @@ -1,29 +1,27 @@ --- -date = '2026-04-18T09:44:39+03:00' -lastmod = '2026-04-18T09:44:39+03:00' -draft = true -title = 'Как автоматизировать создание постов в Hugo: slugs, архетипы и бандлы' -slug = 'hugo-slugs-archetypes-bundles' -description = 'Настраиваем Hugo так, чтобы не копировать index.md вручную, не мучиться с транслитерацией и получать красивые URL с датами' +date: '2026-04-18T09:44:39+03:00' +lastmod: '2026-04-18T09:44:39+03:00' +draft: false +title: 'Как автоматизировать создание постов в Hugo: slugs, архетипы и бандлы' +slug: 'hugo-slugs-archetypes-bundles' +description: 'Настраиваем Hugo так, чтобы не копировать index.md вручную, не мучиться с транслитерацией и получать красивые URL с датами' -categories = [ - 'Hugo', - 'DevOps' -] +categories: + - 'Hugo' + - 'DevOps' -tags = [ - 'hugo', - 'static-site-generator', - 'automation', - 'frontmatter' -] +tags: + - 'hugo' + - 'static-site-generator' + - 'automation' + - 'frontmatter' -keywords = [ - 'hugo', - 'blog' -] +keywords: + - 'hugo' + - 'blog' --- +Ваш текст поста здесь... ## Проблема: рутина при создании постов Когда я только начинал вести блог на Hugo, каждый новый пост создавался через боль и страдания: