summaryrefslogtreecommitdiffstats
path: root/hugolib
AgeCommit message (Collapse)Author
2021-06-18Implement configuration in a directory for modulesBjørn Erik Pedersen
Fixes #8654
2021-06-18Split out the puthe path/filepath functions into common/pathsBjørn Erik Pedersen
So they can be used from the config package without cyclic troubles. Updates #8654
2021-06-16Do not read config from os.Environ when running testsBjørn Erik Pedersen
Fixes #8655
2021-06-14Misc config loading fixesBjø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-08tpl: Add a terse pagination template variant to improve performanceJoe 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-08Upgrade Instagram shortcodeBjørn Erik Pedersen
Fixes #7879
2021-06-08Fix nested OS env config override when parent does not existBjørn Erik Pedersen
Fixes #8618
2021-06-07tpl/fmt: Add erroridf template funcBjørn Erik Pedersen
Fixes #8613
2021-05-30config: Fix env split to allow = character in values卜木
Fixes #8589
2021-05-24Catch incomplete shortcode errorsatotake
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-23navigation: Cache and copy Menu for sortingsatotake
.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-09modules/npm: Change SetEscapeHTML to falseShohei Ueda
Closes #8512
2021-05-04Add a benchmarkBjørn Erik Pedersen
2021-04-23Make the shortcode template lookup for output formats stableBjørn Erik Pedersen
Fixes #7774
2021-04-20publisher: Exclude comment and doctype elements from writeStatsDirk 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-16build(deps): bump github.com/yuin/goldmark from 1.3.2 to 1.3.5Joe Mooring
Updated test per <https://github.com/yuin/goldmark/pull/205>. Fixes #8377
2021-04-15Add webp image encoding supportBjørn Erik Pedersen
Fixes #5924
2021-04-15Remove extraneous space from figure shortcodeJoe Mooring
Fixes #8401
2021-03-21Simplify some config loading codeBjørn Erik Pedersen
2021-03-21Apply OS env overrides twiceBjø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-20Fix OS env override for nested config param only available in themeBjørn Erik Pedersen
Fixes #8346
2021-03-14media: Make Type comparableBjø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-09Fix output format handling for render hooksBjørn Erik Pedersen
Fixes #8176
2021-03-04Rename a testBjørn Erik Pedersen
2021-03-03Add a debug helperBjørn Erik Pedersen
2021-03-03Add support for Google Analytics v4Daniel Atwood
2021-02-23Allow markdown attribute lists to be used in title render hooksBjørn Erik Pedersen
Fixes #8270
2021-02-18Add 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-18Expand template newline testcase to commandsBjørn Erik Pedersen
2021-02-18Add a test case for Go 1.16 template action newlinesBjørn Erik Pedersen
2021-02-18deps: Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13Bjørn Erik Pedersen
Fixes #8258
2021-02-14Fix some humanize issuessusiwen8
Fixes #7912
2021-02-06tpl/embedded: Exclude pages without Permalink from sitemapJeremy Epstein
2021-02-01github: Enable NPM tests on WindowsBjørn Erik Pedersen
Fixes #8196
2021-01-22js: Add Inject config optionBjørn Erik Pedersen
Fixes #8164
2021-01-22js: Add Shims optionBjø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-18pipes: Add external source map support to js.Build and BabelAndreas Richter
Fixes #8132
2020-12-30Add Dart Sass supportBjø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-23para: Skip para test when not on CIBjørn Erik Pedersen
Fixes #6963
2020-12-19Improve LookPathBjørn Erik Pedersen
2020-12-17Fix Resource.ResourceType so it always returns MIME's main typeBjø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-16hugolib/paths: Fix typo真夜
2020-12-16all: Fix minor typosPhil Davis
2020-12-09Fix BenchmarkMergeByLanguageBjørn Erik Pedersen
Fixes #7914
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2020-12-02tpl: Add title parameter to YouTube shortcodeAndrew Zenk
2020-12-02Use --baseURL path for live-reload URLsth
Fixes #6595
2020-11-26Fix server rebuild issue with partials referenced from render hooksBjørn Erik Pedersen
Fixes #7990
2020-11-25Allow setting the delimiter used for setting config via OS env, e.g. HUGO_Bjørn Erik Pedersen
Fixes #7829
2020-11-25deps: Update to github.com/evanw/esbuild 0.8.11 to 0.8.14Bjørn Erik Pedersen
Closes #7986