Anthony Fok [Fri, 1 Nov 2019 00:04:54 +0000 (18:04 -0600)]
mage: Skip Test386 on non-AMD64 architectures
This is to allow "mage check" to run on arm64 on Travis CI.
Anthony Fok [Fri, 1 Nov 2019 06:08:50 +0000 (00:08 -0600)]
Update past go-cmp's checkptr fix
To fix our -race test under Go 1.14.
See google/go-cmp#167
hugoreleaser [Thu, 31 Oct 2019 15:30:12 +0000 (15:30 +0000)]
releaser: Prepare repository for 0.60.0-DEV
[ci skip]
hugoreleaser [Thu, 31 Oct 2019 15:20:53 +0000 (15:20 +0000)]
releaser: Add release notes to /docs for release of 0.59.1
[ci skip]
hugoreleaser [Thu, 31 Oct 2019 15:20:53 +0000 (15:20 +0000)]
releaser: Bump versions for release of 0.59.1
[ci skip]
hugoreleaser [Thu, 31 Oct 2019 15:20:53 +0000 (15:20 +0000)]
releaser: Add release notes for 0.59.1
[ci skip]
Bjørn Erik Pedersen [Thu, 31 Oct 2019 10:13:14 +0000 (11:13 +0100)]
hugofs: Fix crash in multilingual content fs
Fixes #6463
Jake Jarvis [Wed, 9 Oct 2019 15:27:08 +0000 (11:27 -0400)]
Dockerfile: Switch to mage builds, various optimizations
- Use Alpine for both stages for consistency.
- Switch to mage from go install as dictated in the latest docs.
- Easy switch to building Hugo Extended by directly setting HUGO_BUILD_TAGS flag at image build time: `docker build --build-arg HUGO_BUILD_TAGS=extended .`
- Update to Go 1.13 and Alpine 3.10.
- The only possibly breaking change: Moved the `hugo` binary in the final stage from /hugo to /usr/bin/hugo so one can simply run `hugo` without having to search around for its location.
Anthony Fok [Sun, 27 Oct 2019 12:39:18 +0000 (06:39 -0600)]
resources/images: Add exception for new test image
in TestImageOperationsGolden due to "fused multiply and add" (FMA)
instruction on s390x, ppc64* and arm64.
See #6439
Bjørn Erik Pedersen [Mon, 28 Oct 2019 09:52:47 +0000 (10:52 +0100)]
Adjust benchmark templates
Bjørn Erik Pedersen [Wed, 23 Oct 2019 20:04:52 +0000 (22:04 +0200)]
deps: Update to Chroma v0.6.8 to fix a crash
Also improve relevant logging.
Fixes #6450
Bjørn Erik Pedersen [Wed, 23 Oct 2019 06:57:09 +0000 (08:57 +0200)]
deps: Update quicktest
Nick Krichevsky [Tue, 15 Oct 2019 03:34:56 +0000 (23:34 -0400)]
Do not attempt to build if there is no config file
Fixes #5896
hugoreleaser [Mon, 21 Oct 2019 09:47:26 +0000 (09:47 +0000)]
releaser: Prepare repository for 0.60.0-DEV
[ci skip]
hugoreleaser [Mon, 21 Oct 2019 09:38:50 +0000 (09:38 +0000)]
releaser: Add release notes to /docs for release of 0.59.0
[ci skip]
hugoreleaser [Mon, 21 Oct 2019 09:38:50 +0000 (09:38 +0000)]
releaser: Bump versions for release of 0.59.0
[ci skip]
Bjørn Erik Pedersen [Mon, 21 Oct 2019 09:33:11 +0000 (11:33 +0200)]
Release 0.59.0
hugoreleaser [Mon, 21 Oct 2019 09:17:53 +0000 (09:17 +0000)]
releaser: Add release notes for 0.59.0
Rename to *-ready.md to continue.
[ci skip]
Bjørn Erik Pedersen [Mon, 21 Oct 2019 08:52:23 +0000 (10:52 +0200)]
Bjørn Erik Pedersen [Mon, 21 Oct 2019 08:52:23 +0000 (10:52 +0200)]
Squashed 'docs/' changes from
0584815c8..
723da4a37
723da4a37 Vendor the theme
git-subtree-dir: docs
git-subtree-split:
723da4a3769ee8a6c02758b553618143f92fccef
Bjørn Erik Pedersen [Mon, 21 Oct 2019 08:49:16 +0000 (10:49 +0200)]
Bjørn Erik Pedersen [Mon, 21 Oct 2019 08:49:16 +0000 (10:49 +0200)]
Squashed 'docs/' changes from
fdea5430f..
0584815c8
0584815c8 Add a page about Pages methods (Next, Prev)
653dc8db5 Add note about default bgColor
git-subtree-dir: docs
git-subtree-split:
0584815c8a9ef49c9682b6468a9f2a1e9f05be46
Bjørn Erik Pedersen [Mon, 21 Oct 2019 08:22:28 +0000 (10:22 +0200)]
Bjørn Erik Pedersen [Mon, 21 Oct 2019 08:22:28 +0000 (10:22 +0200)]
Squashed 'docs/' content from commit
fdea5430f
git-subtree-dir: docs
git-subtree-split:
fdea5430f89dfd849d39212abdf5ace0a4763e5a
Bjørn Erik Pedersen [Mon, 21 Oct 2019 08:21:37 +0000 (10:21 +0200)]
docs: Replace /docs
Bjørn Erik Pedersen [Mon, 21 Oct 2019 07:37:46 +0000 (09:37 +0200)]
cache/filecache: Recover from file corruption
Fixes #6401
Bjørn Erik Pedersen [Sun, 20 Oct 2019 08:39:00 +0000 (10:39 +0200)]
resources/images: Allow to set background fill colour
Closes #6298
Nicolas Martignoni [Wed, 16 Oct 2019 13:10:32 +0000 (15:10 +0200)]
media: Add common video media types
- See https://discourse.gohugo.io/t/resources-bytype-for-video-files/21285
Bjørn Erik Pedersen [Mon, 14 Oct 2019 07:30:09 +0000 (09:30 +0200)]
examples: Replace .RSSLink
Fixes #6037
Bjørn Erik Pedersen [Fri, 11 Oct 2019 11:55:46 +0000 (13:55 +0200)]
resources/page: Use binary search in Pages.Prev/Next if possible
This is obviously much faster for lager data sets:
```bash
name old time/op new time/op delta
SearchPage/ByWeight-100-4 267ns ± 4% 272ns ± 5% ~ (p=0.457 n=4+4)
SearchPage/ByWeight-5000-4 10.8µs ± 3% 1.2µs ± 2% -88.99% (p=0.029 n=4+4)
SearchPage/ByWeight-10000-4 21.1µs ± 1% 1.4µs ±11% -93.28% (p=0.029 n=4+4)
```
See #4500
Bjørn Erik Pedersen [Fri, 11 Oct 2019 09:09:43 +0000 (11:09 +0200)]
Make Pages.Prev/Next work like the other Prev/Next methods
Fixes #4500
Zach Bayoff [Sat, 12 Oct 2019 16:10:14 +0000 (12:10 -0400)]
tpl: Add optional "title" attribute to iframe in Vimeo shortcode
Add an optional "title" attribute to the iframe in the vimeo shortcode. If one is not given, the title attribute will default to "vimeo video". It is imperative for iframes to have a non-empty "title" attribute in order to meet WCAG2.0 accessibility guidelines https://www.w3.org/TR/WCAG20-TECHS/H64.
Baibhav Vatsa [Fri, 11 Oct 2019 18:51:24 +0000 (13:51 -0500)]
tpl: Modify error messages of after, first, and last
Modified the messages functions after, first, and last threw on being passed invalid parameters (index or limit) to be more standardised and resemble what Go compiler would throw.
Fixes #6415
Baibhav Vatsa [Fri, 11 Oct 2019 18:15:39 +0000 (13:15 -0500)]
tpl: Last now accepts 0 as limit
Modified the if conditional because of which last threw an error if 0 was passed as limit. The function now returns an empty slice if it is called with 0 as limit. The behavior of first and last is now the same when 0 is passed as limit. Also added tests to test the new behavior.
Fixes #6419
Bjørn Erik Pedersen [Fri, 11 Oct 2019 14:43:00 +0000 (16:43 +0200)]
Update feature_request.md
Vazrupe (HyeonGyu Lee) [Wed, 9 Oct 2019 09:36:25 +0000 (18:36 +0900)]
common: Fix elements are doubling when append a not assignable type
Fixes #6188
Baibhav Vatsa [Fri, 11 Oct 2019 01:16:15 +0000 (20:16 -0500)]
tpl: After now accepts 0 as index
Modified the if conditional because of which after threw an error if called with 0 as index. The function now returns the whole original slice if 0 is passed as an index. Also added tests to test the new behavior.
Fixes #6388
Bjørn Erik Pedersen [Thu, 10 Oct 2019 12:14:55 +0000 (14:14 +0200)]
helpers: Fix data race in global logger init
Fixes #6409
Bjørn Erik Pedersen [Thu, 10 Oct 2019 08:18:30 +0000 (10:18 +0200)]
tpl: Make getJSON/getCVS accept non-string args
This broke for the Twitter simple shortcode now that Shortcodes accepts typed arguments.
Fixes #6382
Bjørn Erik Pedersen [Wed, 9 Oct 2019 17:57:05 +0000 (19:57 +0200)]
Update to Go 1.12.10 and 1.13.1
Fixes #6406
Bjørn Erik Pedersen [Wed, 9 Oct 2019 08:49:52 +0000 (10:49 +0200)]
Simplify test output to simplify diffing
Bjørn Erik Pedersen [Wed, 9 Oct 2019 08:30:09 +0000 (10:30 +0200)]
hugofs: Add FileMeta.String
To make the page listing easier to compare.
Anthony Fok [Wed, 9 Oct 2019 05:46:04 +0000 (23:46 -0600)]
deps: Update minify to v2.5.2
- v2.5.1 removes import comments, solving a build error with Go 1.13
in GOPATH mode (used Debian packaging for example)
- v2.5.2 no longer converts polyline/rect/polygon/line to path
as it has been reported to break a SVG referenced by CSS,
see tdewolff/minify#260
The test case for Min SVG in TestResourceChains is updated accordingly.
Fixes pocc/tshark.dev#33
Anthony Fok [Mon, 7 Oct 2019 18:35:00 +0000 (12:35 -0600)]
resources: Fix image test error on s390x, ppc64* and arm64
In TestImageOperationsGolden, tolerate slight floating-point rounding
differences due to the use or non-use of "fused multiply and add" (FMA)
instruction on different architectures.
Special thanks to @disintegration for the solution in goldenEqual();
see https://github.com/disintegration/gift/issues/20
Fixes #6387
Niklas Fasching [Thu, 3 Oct 2019 21:27:51 +0000 (23:27 +0200)]
Add BaseFs to RenderingContext
The org mode renderer supports including other files [1]. We don't want to
allow reading of arbitrary files (go-org defaults to ioutil.ReadFile [2]) but want
to make use of the FileSystem abstractions hugo provides. For starters we will
allow reading from the content directory only
[1]: e.g. `#+INCLUDE: ./foo.py src python` includes `foo.py` as a python source
block.
Niklas Fasching [Tue, 1 Oct 2019 21:37:47 +0000 (23:37 +0200)]
deps: Update go-org
- add support for latex fragments
- allow customization of ReadFile method for includes (#+INCLUDE: ...)
Bjørn Erik Pedersen [Sun, 6 Oct 2019 19:22:10 +0000 (21:22 +0200)]
media: Use + to create the Type string
Jamie Tanna [Sat, 5 Oct 2019 18:08:45 +0000 (19:08 +0100)]
deps: Upgrade to latest version of emoji dependency
To add support for new emojis in Hugo, we need to upgrade our internal
dependency on the emoji package.
Note that we also need to update our tests, as the underlying emoji that
is rendered has changed.
Follow-up to #6391. (
170f18d9352d39213170dd9d5e947eb45854c84b and
2df5d202c6fc6eb18ee0b259c3dd1156094947c5)
Bjørn Erik Pedersen [Sat, 5 Oct 2019 17:25:25 +0000 (19:25 +0200)]
Revert "deps: Upgrade to latest version of emoji dependency"
This reverts commit
170f18d9352d39213170dd9d5e947eb45854c84b.
Jamie Tanna [Sat, 5 Oct 2019 16:27:32 +0000 (17:27 +0100)]
deps: Upgrade to latest version of emoji dependency
To add support for new emojis in Hugo, we need to upgrade our internal
dependency on the emoji package.
Bjørn Erik Pedersen [Fri, 4 Oct 2019 18:55:10 +0000 (20:55 +0200)]
readme: Update Architectures
Garret Kelly [Thu, 3 Oct 2019 12:46:27 +0000 (08:46 -0400)]
deploy: Add ability to invalidate Google Cloud CDN
Anthony Fok [Thu, 3 Oct 2019 05:40:22 +0000 (23:40 -0600)]
resources: Ensure same dirinfos sort order in TestImageOperationsGolden
Fix filename mismatch errors on Debian auto-building machines
possibly due to different directory order on ext4 vs tmpfs file systems.
Bjørn Erik Pedersen [Mon, 30 Sep 2019 18:09:49 +0000 (20:09 +0200)]
Update bug_report.md
Bjørn Erik Pedersen [Sun, 29 Sep 2019 12:51:51 +0000 (14:51 +0200)]
Support typed bool, int and float in shortcode params
This means that you now can do:
{{< vidur 9KvBeKu false true 32 3.14 >}}
And the boolean and numeric values will be converted to `bool`, `int` and `float64`.
If you want these to be strings, they must be quoted:
{{< vidur 9KvBeKu "false" "true" "32" "3.14" >}}
Fixes #6371
Bjørn Erik Pedersen [Wed, 25 Sep 2019 06:42:15 +0000 (08:42 +0200)]
deps: Update Chroma
Closes #6279
Brian MacKinney [Wed, 25 Sep 2019 06:40:04 +0000 (23:40 -0700)]
github: Add issue templates and action
J. Ansorg [Sat, 21 Sep 2019 14:50:27 +0000 (16:50 +0200)]
resources: Support output image format in image operations
The image format is defined as the image extension of the known formats,
excluding the dot.
All of 'img.Resize "600x jpeg"', 'img.Resize "600x jpg"',
and 'img.Resize "600x png"' are valid format definitions.
If the target format is defined in the operation definition string,
then the converted image will be stored in this format. Permalinks and
media type are updated correspondingly.
Unknown image extensions in the operation definition have not effect.
See #6298
XhmikosR [Sat, 21 Sep 2019 08:08:47 +0000 (11:08 +0300)]
tpl: Add `rel="noopener"` for external links
This could be a security and performance issue.
See https://developers.google.com/web/tools/lighthouse/audits/noopener
XhmikosR [Sat, 21 Sep 2019 08:06:15 +0000 (11:06 +0300)]
tpl: Remove unneeded space
hugoreleaser [Thu, 19 Sep 2019 15:36:35 +0000 (15:36 +0000)]
releaser: Prepare repository for 0.59.0-DEV
[ci skip]
hugoreleaser [Thu, 19 Sep 2019 15:28:26 +0000 (15:28 +0000)]
releaser: Add release notes to /docs for release of 0.58.3
[ci skip]
hugoreleaser [Thu, 19 Sep 2019 15:28:26 +0000 (15:28 +0000)]
releaser: Bump versions for release of 0.58.3
[ci skip]
hugoreleaser [Thu, 19 Sep 2019 15:28:26 +0000 (15:28 +0000)]
releaser: Add release notes for 0.58.3
[ci skip]
Bjørn Erik Pedersen [Thu, 19 Sep 2019 14:58:14 +0000 (16:58 +0200)]
Add some more resource transform tests
See #6348
Bjørn Erik Pedersen [Thu, 19 Sep 2019 08:12:29 +0000 (10:12 +0200)]
Fix cache key transformed resources
Fixes #6348
Fazal Majid [Fri, 13 Sep 2019 12:53:36 +0000 (05:53 -0700)]
deploy: Do not compile in Azure on Solaris
See #6324
hugoreleaser [Fri, 13 Sep 2019 08:12:38 +0000 (08:12 +0000)]
releaser: Prepare repository for 0.59.0-DEV
[ci skip]
hugoreleaser [Fri, 13 Sep 2019 08:04:20 +0000 (08:04 +0000)]
releaser: Add release notes to /docs for release of 0.58.2
[ci skip]
hugoreleaser [Fri, 13 Sep 2019 08:04:20 +0000 (08:04 +0000)]
releaser: Bump versions for release of 0.58.2
[ci skip]
hugoreleaser [Fri, 13 Sep 2019 08:04:20 +0000 (08:04 +0000)]
releaser: Add release notes for 0.58.2
[ci skip]
Bjørn Erik Pedersen [Thu, 12 Sep 2019 17:53:31 +0000 (19:53 +0200)]
Fix cache keys for bundled resoures in transform.Unmarshal
Fixes #6327
Bjørn Erik Pedersen [Thu, 12 Sep 2019 15:24:34 +0000 (17:24 +0200)]
filecache: Ignore "does not exist" errors in prune
Fixes #6326
Fixes #5745
hugoreleaser [Fri, 6 Sep 2019 09:26:46 +0000 (09:26 +0000)]
releaser: Prepare repository for 0.59.0-DEV
[ci skip]
hugoreleaser [Fri, 6 Sep 2019 09:18:56 +0000 (09:18 +0000)]
releaser: Add release notes to /docs for release of 0.58.1
[ci skip]
hugoreleaser [Fri, 6 Sep 2019 09:18:56 +0000 (09:18 +0000)]
releaser: Bump versions for release of 0.58.1
[ci skip]
hugoreleaser [Fri, 6 Sep 2019 09:18:56 +0000 (09:18 +0000)]
releaser: Add release notes for 0.58.1
[ci skip]
Bjørn Erik Pedersen [Fri, 6 Sep 2019 07:28:43 +0000 (09:28 +0200)]
Avoid writing the same processed image to /public twice
Fixes #6307
Bjørn Erik Pedersen [Fri, 6 Sep 2019 09:03:23 +0000 (11:03 +0200)]
hugolib: Fix broken bundle live reload logic
Fixes #6315
Updates #6308
Bjørn Erik Pedersen [Fri, 6 Sep 2019 08:39:21 +0000 (10:39 +0200)]
deps: Update github.com/bep/gitmap
Fixes #6313
Bjørn Erik Pedersen [Thu, 5 Sep 2019 16:03:00 +0000 (18:03 +0200)]
Fix concat with fingerprint regression
In Hugo 0.58 we optimized the transformers that only adjusted metadata, e.g. the fingerprint.
This depended on the source readers implementing `io.ReadSeeker`.
The reader produced by `concat` did that, but the implementation was buggy.
This commit fixes that.
Fixes #6309
Vazrupe (HyeonGyu Lee) [Tue, 3 Sep 2019 12:20:20 +0000 (21:20 +0900)]
tpl: Remove eq argument limitation
Fixes #6237
hugoreleaser [Wed, 4 Sep 2019 15:51:16 +0000 (15:51 +0000)]
releaser: Prepare repository for 0.59.0-DEV
[ci skip]
hugoreleaser [Wed, 4 Sep 2019 15:41:58 +0000 (15:41 +0000)]
releaser: Add release notes to /docs for release of 0.58.0
[ci skip]
hugoreleaser [Wed, 4 Sep 2019 15:41:58 +0000 (15:41 +0000)]
releaser: Bump versions for release of 0.58.0
[ci skip]
Bjørn Erik Pedersen [Wed, 4 Sep 2019 15:33:42 +0000 (17:33 +0200)]
Release 0.58.0
Bjørn Erik Pedersen [Wed, 4 Sep 2019 12:07:10 +0000 (14:07 +0200)]
Allow slices in the image Filter funcs, not just varargs
[ci skip]
See #6255
Bjørn Erik Pedersen [Wed, 4 Sep 2019 11:05:50 +0000 (13:05 +0200)]
Update 0.58.0-relnotes.md
[ci skip]
hugoreleaser [Wed, 4 Sep 2019 10:39:05 +0000 (10:39 +0000)]
releaser: Add release notes for 0.58.0
Rename to *-ready.md to continue.
[ci skip]
Bjørn Erik Pedersen [Wed, 4 Sep 2019 07:50:32 +0000 (09:50 +0200)]
hugolib: Adjust Go version specific test
See #6304
Bjørn Erik Pedersen [Tue, 3 Sep 2019 22:54:41 +0000 (00:54 +0200)]
Update to Go 1.13
Fixes #6304
Bjørn Erik Pedersen [Tue, 3 Sep 2019 19:36:28 +0000 (21:36 +0200)]
hugolib: Remove the old and slow site benchmarks
Bjørn Erik Pedersen [Tue, 3 Sep 2019 08:36:09 +0000 (10:36 +0200)]
Cache processed images by their source path
Fixes #6269
Bjørn Erik Pedersen [Tue, 3 Sep 2019 15:18:18 +0000 (17:18 +0200)]
Remove test artifact
Bjørn Erik Pedersen [Tue, 3 Sep 2019 10:58:02 +0000 (12:58 +0200)]
Make the "is this a Hugo Module" logic more lenient
Now we only try to load modules via Go if there is one or more modules imported in project config.
Fixes #6299
Bjørn Erik Pedersen [Tue, 3 Sep 2019 10:25:41 +0000 (12:25 +0200)]
hugolib: Add a Sass includePaths test
See #6274
Bjørn Erik Pedersen [Tue, 3 Sep 2019 08:04:06 +0000 (10:04 +0200)]
Update to Go 1.11.13 and 1.12.9
Fixes #6228
Bjørn Erik Pedersen [Mon, 2 Sep 2019 15:34:02 +0000 (17:34 +0200)]
Make home.Pages work like any other section
Fixes #6240
Bjørn Erik Pedersen [Mon, 2 Sep 2019 15:09:56 +0000 (17:09 +0200)]
Add some fingerprint tests
Closes #6284
Closes #6280
Bjørn Erik Pedersen [Sun, 1 Sep 2019 15:27:21 +0000 (17:27 +0200)]
resources: Cache Exif data to disk
```bash
name old time/op new time/op delta
ImageExif/Cold_cache-4 312µs ±28% 355µs ± 7% ~ (p=0.343 n=4+4)
ImageExif/Cold_cache,_10-4 479µs ± 6% 546µs ± 0% +13.91% (p=0.029 n=4+4)
ImageExif/Warm_cache-4 272µs ± 1% 81µs ± 5% -70.30% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
ImageExif/Cold_cache-4 151kB ± 0% 161kB ± 0% +6.46% (p=0.029 n=4+4)
ImageExif/Cold_cache,_10-4 179kB ± 0% 189kB ± 0% +5.49% (p=0.029 n=4+4)
ImageExif/Warm_cache-4 151kB ± 0% 13kB ± 0% -91.52% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
ImageExif/Cold_cache-4 1.03k ± 0% 1.21k ± 0% +17.78% (p=0.029 n=4+4)
ImageExif/Cold_cache,_10-4 1.65k ± 0% 1.83k ± 0% +11.09% (p=0.029 n=4+4)
ImageExif/Warm_cache-4 1.03k ± 0% 0.28k ± 0% -72.40% (p=0.029 n=4+4)
```
Fixes #6291