From 323bf562147713b37b5d86915f80f2dcc6bba039 Mon Sep 17 00:00:00 2001 From: surdeus Date: Sun, 22 Dec 2024 19:02:46 +0500 Subject: [PATCH] feat: added the menus. --- archetypes/default.md | 2 +- content/news/check.md | 8 ++++++++ hugo.toml | 10 ++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 content/news/check.md diff --git a/archetypes/default.md b/archetypes/default.md index c6f3fce..cae8048 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,5 +1,5 @@ +++ title = '{{ replace .File.ContentBaseName "-" " " | title }}' date = {{ .Date }} -draft = true +draft = false +++ diff --git a/content/news/check.md b/content/news/check.md new file mode 100644 index 0000000..8b11d96 --- /dev/null +++ b/content/news/check.md @@ -0,0 +1,8 @@ ++++ +title = 'Check' +date = 2024-12-22T17:56:27+05:00 +draft = false ++++ + +Checking the news menu. + diff --git a/hugo.toml b/hugo.toml index cc06afe..2cc6595 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,3 +2,13 @@ baseURL = 'https://blog.surdeus.su/' languageCode = 'en-US' title = 'Surdeus Blog' theme = 'ananke' + +[menus] + [[menus.main]] + name = 'Posts' + pageRef = '/posts' + weight = 10 + [[menus.main]] + name = 'News' + pageRef = '/news' + weight = 20