chore: update configs

Moved the hugo.toml configuration from the root directory to config/_default/ to better organize project structure. Updated the markup.toml and params.toml files with additional comments for clarity.
This commit is contained in:
geekifan
2025-06-05 15:47:04 +08:00
parent 87b2d19d64
commit d493a4a227
4 changed files with 66 additions and 18 deletions

25
config/_default/hugo.toml Normal file
View File

@ -0,0 +1,25 @@
# The base URL for the site.
baseURL = 'https://geekifan.github.io/chirpy-starter/'
# The title of the site.
title = 'Chirpy'
# Enable Git info https://gohugo.io/methods/page/gitinfo/
enableGitInfo = false
# The default content language.
defaultContentLanguage = "en"
# Whether the default content language is in a subdirectory.
defaultContentLanguageInSubdir = false
# Whether the site has CJK language (Chinese, Japanese, Korean).
hasCJKLanguage = true
# Pagination settings.
[pagination]
pagerSize = 5
# Make sure to include JSON output to support the search functionality.
[outputs]
home = ["HTML", "RSS", "JSON"]
# Import the theme.
[module]
[[module.imports]]
path = "github.com/geekifan/hugo-theme-chirpy"

View File

@ -1,3 +1,4 @@
# Code highlighting settings.
[highlight]
anchorLineNos = false
codeFences = true

View File

@ -1,8 +1,11 @@
# boolean type, the global switch for TOC in posts.
toc = true
# the avatar on sidebar, should be a relative path to /assets.
avatar = "img/commons/avatar.jpg"
author = "yifan"
[assets]
# Self-hosted static assets, default to false. If true, the assets will be hosted on your own server.
self_host = false
[social]
@ -27,4 +30,40 @@ author = "yifan"
[[social.links]]
type = "rss"
icon = "fas fa-rss"
noblank = true # will not open in new window
noblank = true # will not open in new window
[comments]
# Global switch for the post-comment system. [true | false]
enable = false
# The provider options are as follows: [disqus | utterances | giscus]
provider = ""
# Disqus options
[comments.disqus]
# fill with the Disqus shortname. https://help.disqus.com/en/articles/1717111-what-s-a-shortname
shortname = ""
# utterances settings https://utteranc.es/
[comments.utterances]
# <gh-username>/<repo>
repo = ""
# < url | pathname | title | ...>
issue_term = ""
# Giscus options https://giscus.app
[comments.giscus]
# <gh-username>/<repo>
repo = ""
repo_id = ""
category = ""
category_id = ""
# optional, default to 'pathname'
mapping = ""
# optional, default to '0'
strict = ""
# optional, default to 'bottom'
input_position = ""
# optional, default to site language
lang = ""
# optional, default to the value of `1`
reactions_enabled = ""

View File

@ -1,17 +0,0 @@
baseURL = 'https://geekifan.github.io/chirpy-starter/'
title = 'Chirpy'
enableGitInfo = false
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
hasCJKLanguage = true
[pagination]
pagerSize = 5
[outputs]
home = ["HTML", "RSS", "JSON"]
[module]
[[module.imports]]
path = "github.com/geekifan/hugo-theme-chirpy"