ci(deps): update dependency hugo to v0.109.0 - autoclosed #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.73.0
->0.109.0
Release Notes
gohugoio/hugo (hugo)
v0.109.0
Compare Source
Hugo
v0.109.0
is the last release of 2022 – and with that we're wishing all of you a very merry Christmas and a prosperous new year[^1].Notable new features
Pass variables to SCSS/SASS
Hugo has had great SCSS/SASS support, but passing variables (e.g. theme colours from config) down to the transpiler has been much harder than it should.
In Hugo
v0.109.0
we added a new vars option and you can finally just do:And then in the SCSS file:
More examples here.
Hugo Module Workspaces
Workspace support was added in Go 1.18, and in this release Hugo finally gets solid support for it.
A common use case for a workspace is to simplify local development of a site with its theme modules.
A workspace can be configured in a
*.work
file and activated with the module.workspace setting, which for this use is commonly controlled via theHUGO_MODULE_WORKSPACE
OS environment variable.See the hugo.work file in the Hugo Docs repo for an example:
Using the
use
directive, list all the modules you want to work on, pointing to its relative location. As in the example above, it's recommended to always include the main project (the ".") in the list.With that you can start the Hugo server with that workspace enabled:
The
--ignoreVendorPaths
flag is added above to ignore any of the vendored dependencies inside_vendor
. If you don't use vendoring, you don't need that flag. But now the server is set up watching the files and directories in the workspace and you can see your local edits reloaded.Breadcrumbs
We have added a new
.Ancestors
method onPage
that walks up the tree to the home page. With this, breadcrumbs templates can be greatly simplified:The path to /public now available in PostCSS
So you can do
process.env.HUGO_PUBLISHDIR
in yourpostcss.config.js
to figure out where Hugo publishesits files.
Note that the value will always be an absolute file path and will point to a directory on disk even when running
hugo server
in memory mode.If you write to this folder from PostCSS when running the server, you could run the server with one of these flags:
Note
0d4b17d
@bep #105533afaca7
@bep2d217cb
@jmooring #10548ad20598
@bep #10534Bug fixes
libsass
transpiler intoCSS
and uses the cached build to avoid having the extended version installed on the CI server, you need to rebuild those assets and commit them to source control (e.g. withhugo --gc
).aa2c724
@bep #105425d5f0a2
@septs #10555b54de1b
@bep #10527e0e63f3
@lacameraImprovements
180dfeb
@bepeb0c8f9
@bep #105673a21618
@septs #105677183232
@jmooring37ab1cf
@jmooring #907359af05c
@bep #105544989da6
@jmooringeffa6a4
@bep #10555d20d265
@bep #1056141a080b
@bep #10555eda1e72
@bep330fa89
@bep6db5274
@bep #1055617055d1
@bep2a81a49
@bepe30d711
@acclassic #860187e898a
@bepd894269
@bep #105173fd0b78
@jmooring #10515Dependency Updates
7874b96
@dependabot[bot]Documentation
10bb29d
@bepcd1ed56
@bepBuild Setup
c9354d5
@bep[^1]: We're working on some bigger and even more exiting Hugo features that will be ready early next year. Stay tuned!
v0.108.0
Compare Source
With Hugo
v0.108.0
you can render standalone Markdown images without a surrounding paragraph. Both the HTML- and CommonMark-specification defines image as an inline element. For Markdown, this has meant that if you put an image on its own (not inlined in another paragraph), it would be wrapped in<p></p>
tags, even if you provide your own Render Hook Template.Now you can get by this annoyance by setting
markup.goldmark.parser.wrapStandAloneImageWithinParagraph = false
In the above we have also enabled attribute support for Markdown blocks to illustrate another nice side effect of this; it's now possible to use Markdown attributes (e.g. CSS classes) on standalone images:
The images in the above Markdown example would, given the hook template below, be rendered wrapped in a
figure
element with theblue
CSS class applied in the latter example.Two new fields are added to the render context passed to image render hooks:
IsBlock
: Returns true if this is a standalone image and the config option markup.goldmark.parser.wrapStandAloneImageWithinParagraph is disabled.Ordinal
: Zero-based ordinal for all the images in the current document.Bug fixes
5067775
@bep #10505d373774
@bep #10489Improvements
f97544a
@bepd8efe08
@bepb82b547
@razonyange93138d
@bep7d16c3c
@bep63126c6
@bep #8362 #10492 #10494 #105010b976d2
@jmooring #10495a49e51f
@dirtymew #10478dc44bca
@septsb8d5c37
@jmooringDependency Updates
f5b5b71
@bep50549c8
@dependabot[bot]535ea8c
@dependabot[bot]8bbec42
@dependabot[bot]0bfa293
@dependabot[bot]83080df
@bepDocumentation
de9c554
@bep #104927d5e3ab
@bep75f782a
@bepv0.107.0
Compare Source
This release is mostly interesting if you do code highlighting. We fixed a bottle neck which should show a significant performance boost for sites using code highlighting. Hugo's gohugo.io docs site builds ~20% faster. Also, Chroma, the highlighting library, is upgraded to v2.4.0 with new lexers and lots of improvements.
Bug fixes
00fe7e0
@jmooring #10451Improvements
7855b47
@bep34d1150
@bep85e2ac1
@jmooring #10460Dependency Updates
6a004b8
@dependabot[bot]0923622
@dependabot[bot]7477672
@dependabot[bot]63f7f0f
@dependabot[bot]bcb62d8
@bepv0.106.0
Compare Source
Bug fixes
52ea07d
@bep #10406db945a6
@shifterbitf6ab955
@bep #10411Dependency Updates
bafb389
@dependabot[bot]cdd83bf
@dependabot[bot]e00220a
@bepa662dda
@bepfe08d35
@dependabot[bot]4b675dd
@dependabot[bot]24eaa29
@dependabot[bot]58a98c7
@dependabot[bot]900904f
@dependabot[bot]24eca0c
@dependabot[bot]Documentation
0a019a1
@bep9f7fb0a
@bep60e0e2c
@vgnh13adf3e
@vgnhv0.105.0
Compare Source
Bug fixes
e5d2a8f
@davidejones #10391631d768
@bep #10391Improvements
00ff161
@bep588710a
@bep20ef6dc
@bepd1cd1db
@bep09e1011
@bep01ebb6e
@djibe1fd3320
@bep0fb2b3d
@jongwooodb05232
@jongwoooDependency Updates
f505854
@dependabot[bot]2aedccc
@dependabot[bot]c109314
@dependabot[bot]4732c47
@dependabot[bot]62780ec
@dependabot[bot]351d6b0
@dependabot[bot]ed930db
@dependabot[bot]05df964
@dependabot[bot]9860e0e
@dependabot[bot]2ef60db
@dependabot[bot]Documentation
6275aad
@wind0rBuild Setup
a066e98
@bepv0.104.3
Compare Source
What's Changed
Note that none of the fixes below are regressions from v0.104.*; the first one, the GIF fix, comes from v0.101, back when we added support for processing animated GIFs.
3a9cb7b
@bep #103540addb30
@anthonyfok #10332b002d47
@jmooring #10351e3f3135
@felicianotechv0.104.2
Compare Source
Fix htimes /: operation not permitted error on config changes when running the server. This regression was introduced in Hugo
v0.104.1
4611b69
@bepv0.104.1
Compare Source
What's Changed
29ccb36
@bep #10328v0.104.0
Compare Source
Some bug fixes, dependency upgrades and a new
$image.Colors
method. This method returns a slice of the most dominant colors in an image. The library we use is implemented by @marekm4 and is both fast and accurate. One use case for this may be to use as a placeholder before the image is loaded, as seen on this Hugo gallery [theme source]. You need a slow enough internet connection to notice this effect so you may want to try this with Chrome's dev console open and throttle the network to slow 3G, which would make it look something like this:colorsani1.mp4
Bug fixes
281554e
@satotakef3560aa
@bep #10314Improvements
5c41653
@bep0171fb2
@bepa402811
@bep #1030708f0984
@bep86653fa
@sathieuDependency Updates
edf9038
@dependabot[bot]78f49b4
@dependabot[bot]fa4b77e
@dependabot[bot]4d909d4
@dependabot[bot]4eb6d97
@dependabot[bot]Documentation
8377c3c
@bep4f9cb4f
@bepv0.103.1
Compare Source
What's Changed
6be6752
@bep #10287v0.103.0
Compare Source
There are 3 main topics in this release:
hugo server
finally comes with proper 404 support.PostProcess
'ed resources in all file types (e.g. JSON), not just HTML.hugo_0.102.3_OpenBSD-64bit.tar.gz
). We now use the standard GOOS/GOARCH values as-is, which makes it easier for people to script against. To avoid breakage when running on Netlify and similar, we create aliases for the most commonly downloaded Linux-archives on the old format and will continue to do so in the foreseeable future.Bug fixes
ab5ce59
@satotake02c89a4
@toothrot #8174Improvements
8e77bcc
@bep #1026974daca6
@bep #10269a5cda5c
@bep--force
tohugo new
7d40da8
@satotake #92435e03de0
@sashashuraDependency Updates
1fd4c56
@dependabot[bot]5e2b28d
@dependabot[bot]f2019f0
@dependabot[bot]475638f
@dependabot[bot]Build Setup
3f0b40f
@bep #1007306c3ac6
@bepv0.102.3
Compare Source
What's Changed
8e5044d
@bep #10236v0.102.2
Compare Source
What's Changed
5046a6c
@jmooring #10230v0.102.1
Compare Source
What's Changed
79932e7
@bep #10220v0.102.0
Compare Source
Note: there were an issue with the Deb Linux binaries (see #10220), so those are now removed; will create a patch release with a fresh set later today.
This release adds Linux ARM64 extended archives (see issue #8257). If you look behind the scenes of this, you may say that "this looks like a lot of work for one file", but the current serial build setup was already closing in on the timeout limits of CircleCI (mostly because of the relatively resource-intensive extended build with CGO/webp/libsass). So, we eventually had to do something. This release is built using Hugoreleaser, a custom build tool that allows us to partition the build step. The Linux ARM64 binaries are built in its own Docker container, and we also get a general speedup of the entire build:
In Circle CI, this is how the release flow looks like:
In the above,
build_container1
is doing most of the work and is configured withparallelism: 7
and partitioned using$CIRCLE_NODE_TOTAL
and$CIRCLE_NODE_INDEX
:See the CircleCI Config for details.
Notes
Bug fixes
f5ba6fd
@bepc4bbc1e
@bepcbdaff2
@chick-p #101183fefea0
@yyqqingImprovements
c983484
@bep #10218f7e00c0
@anthonyfokb017f7c
@satotake #1010521562e3
@satotake9c24b86
@bep223bf28
@bep72b0ccd
@bep8ebcaa5
@anthonyfok #10053d1278f6
@bep92f31ae
@bepDependency Updates
2de393c
@dependabot[bot]7efb356
@dependabot[bot]ddbcc67
@dependabot[bot]fd75f12
@bep #1021014878ca
@dependabot[bot]e88873b
@dependabot[bot]4219993
@dependabot[bot]988e141
@dependabot[bot]4252988
@dependabot[bot]45f1b1c
@dependabot[bot]369bdf2
@dependabot[bot]d1b03a0
@dependabot[bot]Build Setup
0ff4a93
@bep45e1084
@bep #82570e0fb1b
@anthonyfok7fb2808
@bep #91310cd1929
@bep #101452414819
@anthonyfok5caed8a
@anthonyfok #6226fd3953c
@anthonyfok #622615463f8
@bepDocumentation
941c28a
@reecerussellffbdcc7
@bep95d9764
@bepb66f9f2
@bep5c48ba9
@bep #10136v0.101.0
Compare Source
Hugo
v0.101.0
comes with GIF animation image processing, a newhl_inline
option for code highlighting, a new:slugorfilename
permalink keyword, we now respect the NO_COLOR OS env var, and more.This release represents 35 contributions by 9 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @dependabot[bot], @jmooring, and @vanbroup for their ongoing contributions. Also a shoutout to @CIAvash for his work on the Chroma highlighter.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 3 contributions by 2 contributors.
Hugo now has:
Changes
2c5943d
@bep #99640cb459a
@bepd863dde
@bep #9442 #9635 #9638580b214
@bepddb9547
@dependabot[bot]288b0fb
@dependabot[bot]3e13446
@dependabot[bot]7a9ce0e
@dependabot[bot]f2ba0cc
@dependabot[bot]62ceaab
@dependabot[bot]35fa192
@bep #9932 #993109ac733
@khayyamsaleem #984966da1b7
@bep #100065a9ecb8
@dawidpotocki #385cbc35c4
@bep #1000444f3c07
@deininga5a4422
@bep #9994617e094
@bep #8631cf12fa6
@bep #50302e1c817
@bep4276075
@bepd25cb29
@bep8b9bdc4
@bep4e94d1d
@bep0566bbf
@bep #9979534e715
@anthonyfok953f215
@jmooring #9973X-Forwarded-Host
for Codespace8e2fd55
@satotake #9936311b800
@bep #9968c7d5f9f
@vanbroup #9971bfebd8c
@bep0afb486
@bepb1ec0c2
@bep212d9e3
@bep #99594daac65
@bepv0.100.2
Compare Source
This release is mostly motivated by the fix for the panic experienced by people having
blackfriday
configured asdefaultMarkdownHandler
(#9968). The Blackfriday support was removed in Hugo v0.100.0 after being deprecated with a warning for a long time.0566bbf
[@bConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.