Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Create a struct with all of Hugo's config options | Bjørn Erik Pedersen | 2023-05-16 |
| | | | | | | | | | | | | Primary motivation is documentation, but it will also hopefully simplify the code. Also, * Lower case the default output format names; this is in line with the custom ones (map keys) and how it's treated all the places. This avoids doing `stringds.EqualFold` everywhere. Closes #10896 Closes #10620 | ||
* | all: Format code with gofumpt | Bjørn Erik Pedersen | 2020-12-03 |
| | | | | See https://github.com/mvdan/gofumpt | ||
* | typo: already -> already | Daniel Holbach | 2020-09-14 |
| | |||
* | Add "hugo mod npm pack" | Bjørn Erik Pedersen | 2020-09-13 |
This commit also introduces a convention where these common JS config files, including `package.hugo.json`, gets mounted into: ``` assets/_jsconfig ´`` These files mapped to their real filename will be added to the environment when running PostCSS, Babel etc., so you can do `process.env.HUGO_FILE_TAILWIND_CONFIG_JS` to resolve the real filename. But do note that `assets` is a composite/union filesystem, so if your config file is not meant to be overridden, name them something specific. This commit also adds adds `workDir/node_modules` to `NODE_PATH` and `HUGO_WORKDIR` to the env when running the JS tools above. Fixes #7644 Fixes #7656 Fixes #7675 |