Age | Commit message (Collapse) | Author |
|
|
|
Closes #1866
Closes #1227
Closes #1468
Closes #1472
Closes #1555
Closes #1626
Closes #1737
Closes #1841
|
|
Merged settings from config.toml in project root into
config/_default/config.toml.
Closes #1596
|
|
|
|
Add BRANCH to env whitelist.
|
|
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 = ['.*']
```
|
|
|
|
That should make the Netlify builds faster, now that we don't store the images in Git anymore.
|
|
|
|
|
|
|
|
|
|
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
|
|
and replace reference to the config in templates/introduction.md
|
|
|
|
|
|
|
|
|
|
So we can use it for testing.
|
|
See https://github.com/gohugoio/hugo/issues/5422
|