Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoDocs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
AgeCommit message (Collapse)Author
2022-11-11Fix docs menu weightsJoe Mooring
2022-11-10Promote "Installation" to a sectionJoe Mooring
Closes #1866 Closes #1227 Closes #1468 Closes #1472 Closes #1555 Closes #1626 Closes #1737 Closes #1841
2022-11-07Consolidate site configurationJoe Mooring
Merged settings from config.toml in project root into config/_default/config.toml. Closes #1596
2022-10-20Markdown and formatting fixes (#1850)Christian Oliff
2021-12-17Update security.tomlBjørn Erik Pedersen
Add BRANCH to env whitelist.
2021-12-16Add some basic security policies with sensible defaultsBjørn Erik Pedersen
This ommmit contains some security hardening measures for the Hugo build runtime. There are some rarely used features in Hugo that would be good to have disabled by default. One example would be the "external helpers". For `asciidoctor` and some others we use Go's `os/exec` package to start a new process. These are a predefined set of binary names, all loaded from `PATH` and with a predefined set of arguments. Still, if you don't use `asciidoctor` in your project, you might as well have it turned off. You can configure your own in the new `security` configuration section, but the defaults are configured to create a minimal amount of site breakage. And if that do happen, you will get clear instructions in the loa about what to do. The default configuration is listed below. Note that almost all of these options are regular expression _whitelists_ (a string or a slice); the value `none` will block all. ```toml [security] enableInlineShortcodes = false [security.exec] allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$'] osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$'] [security.funcs] getenv = ['^HUGO_'] [security.http] methods = ['(?i)GET|POST'] urls = ['.*'] ```
2021-12-12Set a sensible maxAge on the image cacheBjørn Erik Pedersen
2021-12-11Configure image cache to use :cacheDir/imagesBjørn Erik Pedersen
That should make the Netlify builds faster, now that we don't store the images in Git anymore.
2021-08-03docs: Adjust config docsBjørn Erik Pedersen
2021-02-19Release 0.81.0v0.81.0Bjørn Erik Pedersen
2020-05-31Clean up the markup configBjørn Erik Pedersen
2020-01-23Params cleanupBjørn Erik Pedersen
2019-11-23Add Goldmark as the new default markdown handlerBjørn Erik Pedersen
This commit adds the fast and CommonMark compliant Goldmark as the new default markdown handler in Hugo. If you want to continue using BlackFriday as the default for md/markdown extensions, you can use this configuration: ```toml [markup] defaultMarkdownHandler="blackfriday" ``` Fixes #5963 Fixes #1778 Fixes #6355
2019-09-07remove metaDataFormat from config.tomlbmackinney
and replace reference to the config in templates/introduction.md
2019-07-29Make it a Hugo ModuleBjørn Erik Pedersen
2019-07-25docs: Add Hugo Modules docsBjørn Erik Pedersen
2019-03-21config: Remove superflous paramBjørn Erik Pedersen
2019-02-20Remove extra whitespaceShohei Ueda
2019-02-01Add the default cache configurationBjørn Erik Pedersen
So we can use it for testing.
2018-12-24Refactor config below /configBjørn Erik Pedersen
See https://github.com/gohugoio/hugo/issues/5422