Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-18 | Implement configuration in a directory for modules | Bjørn Erik Pedersen | |
Fixes #8654 | |||
2021-06-18 | Split out the puthe path/filepath functions into common/paths | Bjørn Erik Pedersen | |
So they can be used from the config package without cyclic troubles. Updates #8654 | |||
2021-06-16 | Do not read config from os.Environ when running tests | Bjørn Erik Pedersen | |
Fixes #8655 | |||
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 | |||
2021-06-08 | tpl: Add a terse pagination template variant to improve performance | Joe Mooring | |
These calls are equivalent: {{ template "_internal/pagination.html" . }} {{ template "_internal/pagination.html" (dict "page" .) }} {{ template "_internal/pagination.html" (dict "page" . "format" "default") }} To use an alternate format: {{ template "_internal/pagination.html" (dict "page" . "format" "terse") }} Fixes #8599 | |||
2021-06-08 | Upgrade Instagram shortcode | Bjørn Erik Pedersen | |
Fixes #7879 | |||
2021-06-08 | Fix nested OS env config override when parent does not exist | Bjørn Erik Pedersen | |
Fixes #8618 | |||
2021-06-07 | tpl/fmt: Add erroridf template func | Bjørn Erik Pedersen | |
Fixes #8613 | |||
2021-05-30 | config: Fix env split to allow = character in values | 卜木 | |
Fixes #8589 | |||
2021-05-24 | Catch incomplete shortcode error | satotake | |
Currently, no name shortcodes (`{{< >}}`) enter unexpected branch and throw `BUG: template info not set`. This patch checks if shortcode has name or not earlier and throws specific error. Closes #6866 | |||
2021-05-23 | navigation: Cache and copy Menu for sorting | satotake | |
.Site.Menus is mutated when it is sorted for now and this causes concurrency problem (#7594) In this patch, each related sort function copies Menu before sorting to prevent race condition. Pages already have such a sort and cache logic and this patch is identical to it. Closes #7594 | |||
2021-05-09 | modules/npm: Change SetEscapeHTML to false | Shohei Ueda | |
Closes #8512 | |||
2021-05-04 | Add a benchmark | Bjørn Erik Pedersen | |
2021-04-23 | Make the shortcode template lookup for output formats stable | Bjørn Erik Pedersen | |
Fixes #7774 | |||
2021-04-20 | publisher: Exclude comment and doctype elements from writeStats | Dirk Olbrich | |
- Reorder code blocks - Rename cssClassCollectorWriter to htmlElementCollectorWriter, as it just collect html element information - Expand benchmark to test for minified and unminified content Fixes #8396 Fixes #8417 | |||
2021-04-16 | build(deps): bump github.com/yuin/goldmark from 1.3.2 to 1.3.5 | Joe Mooring | |
Updated test per <https://github.com/yuin/goldmark/pull/205>. Fixes #8377 | |||
2021-04-15 | Add webp image encoding support | Bjørn Erik Pedersen | |
Fixes #5924 | |||
2021-04-15 | Remove extraneous space from figure shortcode | Joe Mooring | |
Fixes #8401 | |||
2021-03-21 | Simplify some config loading code | Bjørn Erik Pedersen | |
2021-03-21 | Apply OS env overrides twice | Bjørn Erik Pedersen | |
The recent fix for #8346 had an unfortunate side-effect, as it prevented overrides of config options used in the module collector, e.g. `HUGO_MODULE_REPLACEMENTS`. This commit fixes that by applying the overrides twice. | |||
2021-03-20 | Fix OS env override for nested config param only available in theme | Bjørn Erik Pedersen | |
Fixes #8346 | |||
2021-03-14 | media: Make Type comparable | Bjørn Erik Pedersen | |
So we can use it and output.Format as map key etc. This commit also fixes the media.Type implementation so it does not need to mutate itself to handle different suffixes for the same MIME type, e.g. jpg vs. jpeg. This means that there are no Suffix or FullSuffix on media.Type anymore. Fixes #8317 Fixes #8324 | |||
2021-03-09 | Fix output format handling for render hooks | Bjørn Erik Pedersen | |
Fixes #8176 | |||
2021-03-04 | Rename a test | Bjørn Erik Pedersen | |
2021-03-03 | Add a debug helper | Bjørn Erik Pedersen | |
2021-03-03 | Add support for Google Analytics v4 | Daniel Atwood | |
2021-02-23 | Allow markdown attribute lists to be used in title render hooks | Bjørn Erik Pedersen | |
Fixes #8270 | |||
2021-02-18 | Add breaking tests for "map read and map write in templates" | Bjørn Erik Pedersen | |
The fix upstream in Go was reverted, so we apply a temporary patch for this in Hugo. Updates #7293 | |||
2021-02-18 | Expand template newline testcase to commands | Bjørn Erik Pedersen | |
2021-02-18 | Add a test case for Go 1.16 template action newlines | Bjørn Erik Pedersen | |
2021-02-18 | deps: Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13 | Bjørn Erik Pedersen | |
Fixes #8258 | |||
2021-02-14 | Fix some humanize issues | susiwen8 | |
Fixes #7912 | |||
2021-02-06 | tpl/embedded: Exclude pages without Permalink from sitemap | Jeremy Epstein | |
2021-02-01 | github: Enable NPM tests on Windows | Bjørn Erik Pedersen | |
Fixes #8196 | |||
2021-01-22 | js: Add Inject config option | Bjørn Erik Pedersen | |
Fixes #8164 | |||
2021-01-22 | js: Add Shims option | Bjørn Erik Pedersen | |
This commit adds a new `shims` option to `js.Build` that allows swapping out a component with another. Fixes #8165 | |||
2021-01-18 | pipes: Add external source map support to js.Build and Babel | Andreas Richter | |
Fixes #8132 | |||
2020-12-30 | Add Dart Sass support | Bjørn Erik Pedersen | |
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes #7380 Fixes #8102 | |||
2020-12-23 | para: Skip para test when not on CI | Bjørn Erik Pedersen | |
Fixes #6963 | |||
2020-12-19 | Improve LookPath | Bjørn Erik Pedersen | |
2020-12-17 | Fix Resource.ResourceType so it always returns MIME's main type | Bjørn Erik Pedersen | |
The one exception being for the Page, which does not have a MIME type, in which you will get the value `page`. Fixes #8052 | |||
2020-12-16 | hugolib/paths: Fix typo | 真夜 | |
2020-12-16 | all: Fix minor typos | Phil Davis | |
2020-12-09 | Fix BenchmarkMergeByLanguage | Bjørn Erik Pedersen | |
Fixes #7914 | |||
2020-12-03 | all: Format code with gofumpt | Bjørn Erik Pedersen | |
See https://github.com/mvdan/gofumpt | |||
2020-12-02 | tpl: Add title parameter to YouTube shortcode | Andrew Zenk | |
2020-12-02 | Use --baseURL path for live-reload URL | sth | |
Fixes #6595 | |||
2020-11-26 | Fix server rebuild issue with partials referenced from render hooks | Bjørn Erik Pedersen | |
Fixes #7990 | |||
2020-11-25 | Allow setting the delimiter used for setting config via OS env, e.g. HUGO_ | Bjørn Erik Pedersen | |
Fixes #7829 | |||
2020-11-25 | deps: Update to github.com/evanw/esbuild 0.8.11 to 0.8.14 | Bjørn Erik Pedersen | |
Closes #7986 |