From a228cce08394807f6a6c520fd1fb00a3814c9738 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 16 Sep 2025 10:42:17 +0800 Subject: [PATCH] fix: remove paginate setting and update mainSections comment in hugo.toml --- hugo.toml | 8 ++++---- layouts/_partials/init/index.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hugo.toml b/hugo.toml index 4d464116..0ee044f3 100644 --- a/hugo.toml +++ b/hugo.toml @@ -24,8 +24,6 @@ languageCode = "en" languageName = "English" # whether to include Chinese/Japanese/Korean hasCJKLanguage = false -# default amount of posts in each pages -paginate = 12 # copyright description used only for seo schema copyright = "" # whether to use robots.txt @@ -35,7 +33,9 @@ enableGitInfo = true # whether to use emoji code enableEmoji = true # the main sections of a site -mainSections = [] +# if set, the MainSections method on the Site object returns the given sections, +# otherwise it returns the section with the most pages. +# mainSections = ["posts"] # ------------------------------------------------------------------------------------- # Menu Configuration @@ -226,7 +226,7 @@ mainSections = [] # ------------------------------------------------------------------------------------- [privacy] - [privacy.twitter] + [privacy.x] enableDNT = true [privacy.youtube] privacyEnhanced = true diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index dc0aaacd..c78e23d8 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20250915151330-1f0762dd" -}} +{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20250916024218-5d03f558" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}