1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

11 Commits

Author SHA1 Message Date
73483d0f9e tpl: Add a terse pagination template variant to improve performance
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 10:41:21 +02:00
ba16a14c6e Add support for Google Analytics v4 2021-03-03 13:30:06 +01:00
b5485aeae7 Add breaking tests for "map read and map write in templates"
The fix upstream in Go was reverted, so we apply a temporary patch for this in Hugo.

Updates #7293
2021-02-18 14:11:48 +01:00
d90e37e0c6 all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
2020-12-03 13:12:58 +01:00
77aa385b84 Enable the embedded template test when race detector is off
See #5926
2020-06-25 09:16:28 +02:00
dcde8af8c6 Add some internal template image tests
Closes #6542
2019-11-27 09:24:08 +01:00
9e57182705 tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
ad5703a917 hugolib: Disable racy test
See #5926
2019-05-03 09:20:39 +02:00
2e6712e281 tpl: Always load GA script over HTTPS 2018-06-09 23:47:44 +02:00
1f1d955b56 Add anonymizeIP to GA privacy config
See #4751
2018-05-25 10:53:39 +02:00
35ccf06dae Fix some recently broken embedded templates
And add tests for them.

Fixes #4757
2018-05-23 10:03:11 +02:00