Files
blowfish/exampleSite/config/_default/hugo.toml
ZhenShuo Leo 48e66514f9 🧑‍💻 chore: add options for faster development
Add example:site_core and example:site_core:en_only for faster development

We need development/hugo.toml since the segments still renders images.
See object graph in https://gohugo.io/configuration/segments/
2025-05-14 18:02:30 +08:00

81 lines
1.7 KiB
TOML

# -- Site Configuration --
# Refer to the theme docs for more details about each of these parameters.
# https://blowfish.page/docs/getting-started/
theme = "blowfish"
baseURL = "https://localhost:1313"
defaultContentLanguage = "en"
disableLanguages = [] #to allow translation work requiring shipping to production
# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles
enableRobotsTXT = true
summaryLength = 30
hasCJKLanguage = true
buildDrafts = false
buildFuture = false
enableEmoji = true
googleAnalytics = "G-PEDMYR1V0K"
[pagination]
pagerSize = 102
[imaging]
anchor = 'Center'
[taxonomies]
tag = "tags"
category = "categories"
author = "authors"
series = "series"
[sitemap]
changefreq = 'always'
filename = 'sitemap.xml'
priority = 0.5
[outputs]
home = ["HTML", "RSS", "JSON"]
[related]
threshold = 0
toLower = false
[[related.indices]]
name = "tags"
weight = 100
[[related.indices]]
name = "categories"
weight = 100
[[related.indices]]
name = "series"
weight = 50
[[related.indices]]
name = "authors"
weight = 20
[[related.indices]]
name = "date"
weight = 10
[[related.indices]]
applyFilter = false
name = 'fragmentrefs'
type = 'fragments'
weight = 10
# Render only specific parts of the site for faster development. Use: hugo --renderSegments docs_only
[segments]
[segments.site_core]
[[segments.site_core.includes]]
path = '{/,/docs,/docs/**,/samples,/samples/**}'
[segments.en_only]
[[segments.en_only.includes]]
lang = 'en'