summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-06-18Implement configuration in a directory for modulesBjørn Erik Pedersen
Fixes #8654
2021-06-18tpl: Rename err-missing-instagram-accesstoken => ↵Bjørn Erik Pedersen
error-missing-instagram-accesstoken To get it in line with the other.
2021-06-18deps: Update github.com/alecthomas/chroma v0.9.1 => v0.9.2Bjørn Erik Pedersen
Closes #8658
2021-06-18deps: Run go mod tidyBjørn Erik Pedersen
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-17resources/image: Fix fill with smartcrop sometimes returning 0 bytes imagesBjørn Erik Pedersen
Fixes #7955
2021-06-17deps: Update to Goldmark v1.3.8Joe Mooring
Fixes #8648
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-13github: Set a dummy Instagram tokenBjørn Erik Pedersen
For now, need to debug why this fails.
2021-06-08docs: Regenerate docs helperBjørn Erik Pedersen
2021-06-08Merge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'Bjørn Erik Pedersen
2021-06-08Squashed 'docs/' changes from bcc4f9324..4c81c6c2aBjørn Erik Pedersen
4c81c6c2a live reload: add section about `--navigateToChanged` 271014257 Update netify hugo version to 0.83.1 14199cff1 Add pull_request event 0c33b05de Hosting on GitHub: Little wording fixes and update Ubuntu runner in example workflow to 20.04 (#1457) e47b6c33a Hugo Modules plural typo (#1266) 0f2bbacdd Add node_modules to .gitignore 1d645d79f Overhaul scratch.md (#1451) 572766889 Add link to golang regex syntax, change modified date 21b0c7459 Add info about contentType config de7d96fa2 Document Go template's multiline support 0c8f2dcb1 Avoid scratch usage 696fa92e1 Rename scratch var 44193f267 Update usage instructions 4230f8fa5 Rename and refactor shortcode e9953751e Strip leading whitespaces d61a58010 Add `insertpages` shortcode 04d30677d Mention WebP under 'Target Format' (#1431) 946784508 Update lookup-order.md (#1443) a7b587988 Update index.md 27907f7ea netlify: Hugo 0.83.1 044d37e57 Merge branch 'tempv0.83.1' b81aedb03 Fix page `.Kind` fcf7775ad releaser: Add release notes to /docs for release of 0.83.1 9b39c77c8 fix typo in 0.83 release notes 1c38993ce Update index.md 45b8aefa6 Update index.md 43902dfaa Update index.md 3d959c7ae Merge branch 'tempv0.83.0' 6c22dc327 Fix URL 497ea3224 Use Hugo version badge shortcode a182d10dd releaser: Add release notes to /docs for release of 0.83.0 287fd9ac0 docs: Fix shortcode e789c879a docs: Regenerate docs helper 1666c7f31 docs: Regenerate CLI docs 117de1d12 Merge commit 'c239c643fee10bfa217cb108755b798f8f5f3b10' a6bf3f7d9 docs: Regen docs helper git-subtree-dir: docs git-subtree-split: 4c81c6c2ace6c23d0d5d24ee37e6a2f30acba01e
2021-06-08Update to Go 1.16.5, Goreleaser 0.169.0Bjørn Erik Pedersen
Fixes #8619 Fixes #8263
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-06-07tpl/data: Print response body on HTTP errorsBjørn Erik Pedersen
Which makes it easier to debug.
2021-06-06tpl/data: Misc header improvements, tests, allow multiple headers of same keyBjørn Erik Pedersen
Closes #5617
2021-06-06tpl/data: Allows user-defined HTTP headers with getJSON and getCSVPaul Chamberlain
Updates #5617
2021-06-05hugofs: Set modTime at creation timeBjørn Erik Pedersen
As `ModTime()` should return the same value on each invocation. See #6161
2021-06-04Fix invalid timestamp of the "public" folderAnthony Fok
Special thanks to both Richard Mortimer (@oldelvet) and Joshua M. Clulow (@jclulow) for their analysis and suggested fix: * https://github.com/gohugoio/hugo/issues/6161#issuecomment-574336088 * https://github.com/gohugoio/hugo/issues/6161#issuecomment-596805273 Fixes #6161
2021-05-30config: Fix env split to allow = character in values卜木
Fixes #8589
2021-05-28Add math.Max and math.MinJoe Mooring
Closes #8583
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-24Use SPDX license identifierJoe Mooring
See <https://spdx.org/licenses/> Fixes #8555
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-23deps: Update to LibSASS 3.6.5Bjørn Erik Pedersen
See https://github.com/sass/libsass/releases/tag/3.6.5
2021-05-19publisher: Make the HTML element collector more robustBjørn Erik Pedersen
Fixes #8530
2021-05-19Revert "publisher: Make the HTML element collector more robust"Bjørn Erik Pedersen
This reverts commit ef0f1a726901d6c614040cfc2d7e8f9a2ca97816.
2021-05-19Revert "publisher: Get the collector in line with the io.Writer interface"Bjørn Erik Pedersen
This reverts commit a9bcd38181ceb79afba82adcd4de1aebf571e74c.
2021-05-17publisher: Get the collector in line with the io.Writer interfaceBjørn Erik Pedersen
As in: Do not retain the input slice.
2021-05-17publisher: Make the HTML element collector more robustBjørn Erik Pedersen
Fixes #8530
2021-05-17common/maps: Add Scratch.DeleteInMapmeehawk
Add Scratch.DeleteInMap method. This method works similar to Scratch.SetInMap. It takes in two string parameters, key and mapKey and deletes the value mapped to mapKey in key Closes #8504
2021-05-14Display version when building site (#8533)Joe Mooring
Closes #8531
2021-05-10docs: Update querify function description and examplesJoe Mooring
The querify function now accepts a slice per #8305.
2021-05-09tpl: Allow 'Querify' to take lone slice/interface argumentUjjwal Goyal
Querify can now take a lone string/interface slice (with string keys) as a parameter, or multiple string parameters, to build URL queries. Querify earlier used 'Dictionary' to add key/value pairs to a map to build URL queries. Changed to dynamically generate ordered key/value pairs. Cannot take string slice as key (earlier possible due to Dictionary). Added tests and benchmarks for querify. Closes #6735
2021-05-09modules/npm: Change SetEscapeHTML to falseShohei Ueda
Closes #8512
2021-05-04Add a benchmarkBjørn Erik Pedersen
2021-05-03readme: Update dependency listBjørn Erik Pedersen
2021-05-03tpl: Fix countwords to handle special charsJulien Midedji
Fixes #8479
2021-05-02releaser: Prepare repository for 0.84.0-DEVhugoreleaser
[ci skip]
2021-05-02releaser: Add release notes to /docs for release of 0.83.1v0.83.1hugoreleaser
[ci skip]
2021-05-02releaser: Bump versions for release of 0.83.1hugoreleaser
[ci skip]
2021-05-02releaser: Add release notes for 0.83.1hugoreleaser
[ci skip]
2021-05-02langs/i18n: Fix warning regression in i18nBjørn Erik Pedersen
Fix this by 1. Making sure that only numerical values are treated as plural counts 2. Making sure that `i18n.pluralFormNotFoundError` is not logged as a warning if `other` resolved. Note that 2. isn't a new problem, but became visible because of the plural improvements in Hugo `0.83.0`. Fixes #8492
2021-05-01releaser: Prepare repository for 0.84.0-DEVhugoreleaser
[ci skip]
2021-05-01releaser: Add release notes to /docs for release of 0.83.0v0.83.0hugoreleaser
[ci skip]
2021-05-01releaser: Bump versions for release of 0.83.0hugoreleaser
[ci skip]