Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-03-18 | all: gofmt -w -r 'interface{} -> any' . | Bjørn Erik Pedersen | |
Updates #9687 | |||
2022-02-24 | Add Markdown diagrams and render hooks for code blocks | Bjørn Erik Pedersen | |
You can now create custom hook templates for code blocks, either one for all (`render-codeblock.html`) or for a given code language (e.g. `render-codeblock-go.html`). We also used this new hook to add support for diagrams in Hugo: * Goat (Go ASCII Tool) is built-in and enabled by default; just create a fenced code block with the language `goat` and start draw your Ascii diagrams. * Another popular alternative for diagrams in Markdown, Mermaid (supported by GitHub), can also be implemented with a simple template. See the Hugo documentation for more information. Updates #7765 Closes #9538 Fixes #9553 Fixes #8520 Fixes #6702 Fixes #9558 | |||
2021-08-01 | Fix error handling for the time func alias | Bjørn Erik Pedersen | |
Fixes #8835 | |||
2021-06-14 | Misc config loading fixes | Bjørn Erik Pedersen | |
The main motivation behind this is simplicity and correctnes, but the new small config library is also faster: ``` BenchmarkDefaultConfigProvider/Viper-16 252418 4546 ns/op 2720 B/op 30 allocs/op BenchmarkDefaultConfigProvider/Custom-16 450756 2651 ns/op 1008 B/op 6 allocs/op ``` Fixes #8633 Fixes #8618 Fixes #8630 Updates #8591 Closes #6680 Closes #5192 | |||
2020-12-03 | all: Format code with gofumpt | Bjørn Erik Pedersen | |
See https://github.com/mvdan/gofumpt | |||
2019-08-12 | tests: Convert from testify to quicktest | Bjørn Erik Pedersen | |
2019-07-24 | Add Hugo Modules | Bjørn Erik Pedersen | |
This commit implements Hugo Modules. This is a broad subject, but some keywords include: * A new `module` configuration section where you can import almost anything. You can configure both your own file mounts nd the file mounts of the modules you import. This is the new recommended way of configuring what you earlier put in `configDir`, `staticDir` etc. And it also allows you to mount folders in non-Hugo-projects, e.g. the `SCSS` folder in the Bootstrap GitHub project. * A module consists of a set of mounts to the standard 7 component types in Hugo: `static`, `content`, `layouts`, `data`, `assets`, `i18n`, and `archetypes`. Yes, Theme Components can now include content, which should be very useful, especially in bigger multilingual projects. * Modules not in your local file cache will be downloaded automatically and even "hot replaced" while the server is running. * Hugo Modules supports and encourages semver versioned modules, and uses the minimal version selection algorithm to resolve versions. * A new set of CLI commands are provided to manage all of this: `hugo mod init`, `hugo mod get`, `hugo mod graph`, `hugo mod tidy`, and `hugo mod vendor`. All of the above is backed by Go Modules. Fixes #5973 Fixes #5996 Fixes #6010 Fixes #5911 Fixes #5940 Fixes #6074 Fixes #6082 Fixes #6092 | |||
2019-04-27 | tpl: Fix hugo package name and add godocs | Cameron Moore | |
2018-12-06 | Add tpl/site and tpl/hugo | Bjørn Erik Pedersen | |
This means that the current `.Site` and ´.Hugo` is available as a globals, so you can do `site.IsServer`, `hugo.Version` etc. Fixes #5470 Fixes #5467 Fixes #5503 |