From 183ab3254c8aca61d6ab6718dc40c2007541e2e1 Mon Sep 17 00:00:00 2001 From: Ryan Qian Date: Sat, 25 Nov 2023 18:55:36 +0800 Subject: [PATCH] update hugo.toml for: 1. alignment 2. remove the "posts/" path from url 3. remove the language code from URL for default language zh --- hugo.toml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hugo.toml b/hugo.toml index 40a6e25..a6f3da7 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,10 +1,20 @@ -baseURL = 'https://rvspoc.org/' -languageCode = 'zh-CN' -title = 'RISC-V 软件移植及优化锦标赛' -theme = 'ananke' -defaultContentLanguage = 'zh' -defaultContentLanguageInSubdir = true +baseURL = 'https://rvspoc.org/' +languageCode = 'zh-CN' +title = 'RISC-V 软件移植及优化锦标赛' +theme = 'ananke' +paginate = 10 +timeZone = "Asia/Shanghai" +pluralizeListTitles = false +defaultContentLanguage = 'zh' +defaultContentLanguageInSubdir = false + + +[permalinks] + [permalinks.page] + posts = '/:slug/' + [permalinks.section] + posts = '/posts/' [languages] [languages.zh]