mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
In Hugo v0.132.0, the Goldmark passthrough extension was introduced to preserve raw Markdown text within designated delimiters, ensuring that MathJax or KaTeX can render formulas correctly. With this configuration in place, you no longer need to manually escape characters inside math expressions (for example, \\ → \\\\ or x_y → x\_y). According the official document of Hugo: - [mathematics/#step-1](https://gohugo.io/content-management/mathematics/#step-1) - [Passthrough render hooks](https://gohugo.io/render-hooks/passthrough/)
79 lines
1.6 KiB
TOML
79 lines
1.6 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" # UNCOMMENT THIS LINE
|
||
# baseURL = "https://your_domain.com/"
|
||
defaultContentLanguage = "en"
|
||
|
||
# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles
|
||
|
||
enableRobotsTXT = true
|
||
summaryLength = 0
|
||
|
||
buildDrafts = false
|
||
buildFuture = false
|
||
|
||
enableEmoji = true
|
||
|
||
# googleAnalytics = "G-XXXXXXXXX"
|
||
|
||
[pagination]
|
||
pagerSize = 100
|
||
|
||
[imaging]
|
||
anchor = 'Center'
|
||
|
||
[taxonomies]
|
||
tag = "tags"
|
||
category = "categories"
|
||
author = "authors"
|
||
series = "series"
|
||
|
||
[sitemap]
|
||
changefreq = 'daily'
|
||
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
|
||
|
||
[markup]
|
||
[markup.goldmark]
|
||
[markup.goldmark.extensions]
|
||
[markup.goldmark.extensions.passthrough]
|
||
enable = true
|
||
[markup.goldmark.extensions.passthrough.delimiters]
|
||
block = [['\[', '\]'], ['$$', '$$']]
|
||
inline = [['\(', '\)']]
|