chore(deps): update dependency gohugoio/hugo to v0.112.5 #92
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/gohugoio-hugo-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v0.105.0
->v0.112.5
Release Notes
gohugoio/hugo
v0.112.5
Compare Source
What's Changed
e3dfc76
@bep #11037v0.112.4
Compare Source
fd09933
@bep #110028f293a1
@bep #1102651d0a0a
@bep #1101843f1282
@bep #11018e96cdfe
@bep #11031273d9f6
@bep #11019a6257d8
@bep #110256c2db0d
@bep #11027901cd97
@bep #11015f86b5f7
@bep #11022Documentation
20ea2e0
@bepffdbce5
@bepv0.112.3
Compare Source
What's Changed
231374a
@bep #11013v0.112.2
Compare Source
What's Changed
dd67922
@bep #110129a235d0
@bep #11006v0.112.1
Compare Source
What's Changed
ed906a8
@bep #11000Also see the main release: https://github.com/gohugoio/hugo/releases/tag/v0.112.0
v0.112.0
Compare Source
Proper TailwindCSS v3.x support, much improved language config merge, consolidation of all Hugo config (check out
hugo config
), rewrittencommands
package (CLI) using SimpleCobra, Goldmark's typographer extension (quotation marks per language), and more.Headlines
TailwindCSS v3.x Support, new cache buster configuration
TailwindCSS 3 has been out for a while now, and unfortunately their new build strategy didn't work very well with Hugo. But this release adds a new
build.cachebusters
config option for the resource cache that allows more fine grained control over when to trigger a new Tailwind build. This is a generally useful feature, so if you're having issues not seeing your resource changes (e.g. change to a JS file) on change, you could try to tweak the defaults. A tip is to run the server withhugo server --debug
and watch out for log messages prefixed withcachebuster:
on file changes.There are several possible setups here, but one that we have tested and that works well is outlined in the config below. The basic concept is to add
hugo_stats.json
to the server watcher list in Hugo and trigger a new TailwindCSS build only whenever either this file or the main CSS file changes.And then in
tailwind.config.js
:Reconsolidated all configuration handling
For this release we have collected all configuration into one big Go struct and rewritten the command line API using SimpleCobra. All of this makes the source code easier to maintain and understand, but the original motivation for this was to get a complete and autogenerated API reference for Hugo (we're working on getting that done), but this also have some less technical upsides:
'hugo config' is now complete
What you get when running
hugo config
is a complete TOML representation (add--format json
or--format yaml
for alternative formats) of the effective configuration. As this will include default values and configuration merged in from themes, we don't recommend to copy and paste this intohugo.toml
, as that would make your configuration very verbose.Improved language config handling
See issue #10620 for some details, but in general, the merge behaviour of sections from
languages
is much improved. In the example below for languageen
you will now get:In earlier versions of Hugo you would get:
Note that values in a given language will always have precedence over same keys in root (the section inside the language is the receiving side of any merge operation), so, if you want the old (and buggy) behaviour, you can add a merge strategy to one of the
params
sections, e.g:You can now also configure just about everything per language. One useful example would be the Goldmark
typographer
extension:More info in verbose build output
If you build flag with the
-v
, you will now get timing info for the core building steps in Hugo:Notes
site.Language.Params
and configuration of custom params outside of the language[params]
, see https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120 for more information.Bug fixes
288be19
@bep #10953e6dc805
@bep #109720a51dfa
@bep #10953e4e0313
@bepad4bc96
@deining4003c79
@cuishuang610ceda
@alexandear95818e2
@alexandear834b3d7
@bep #1095386b2a27
@bep #109475d85716
@bep #10947d01731d
@kirisakow891b291
@alexandear0fbab7c
@bepImprovements
70b2aaf
@bep85b13c1
@bep9a0370e
@deining4cac5f5
@bep #109852c3d4df
@bep #109746ca8a40
@bep #109532db7ec6
@InLaw2637b4e
@bep #102867c7baa6
@bep #109694f085e8
@bep #10953150d190
@jmooringd6197a4
@bep #109535b3e165
@jmooring #969403cb38e
@bep #10953008170c
@BenTheElder #109507c647bc
@bep #109533f00f47
@bep35955f5
@bep8a69ccb
@bep #109477ce033a
@bep #109470554213
@bep #109475251f01
@bep #109470106cf1
@bep59050f9
@BenTheElder #10950faa6998
@bep #109473d90871
@alexandearbda082c
@alexandear #10941241b21b
@bep #10896 #106206aededf
@bep #109420988b76
@bepe0e19a9
@bepbcd7ac7
@jmooringa4fb8dc
@kirillbobyrev5c7b79c
@jmooring0cb6ca5
@jmooring #9216f106251
@bep9906c1a
@bep5596dc2
@bep #97725748133
@bep #1086605c095a
@deiningb0b1b76
@bepf5eddf8
@septs #10827Dependency Updates
f014921
@bep #109931292d5a
@dependabot[bot]baa5569
@dependabot[bot]a5413c1
@dependabot[bot]9cea58a
@dependabot[bot]1a5dce4
@dependabot[bot]065ae00
@dependabot[bot]1a7d57c
@dependabot[bot]bba54e6
@dependabot[bot]7370543
@dependabot[bot]f6269ee
@dependabot[bot]715d484
@bepc371171
@bep24e7d0c
@bep #10629 #10491Documentation
b6e6438
@bep943ff7f
@bep #1095310d0fcc
@bep1155bbc
@jmooring4f341fa
@bep46a3cf6
@bepf1e8f01
@bepv0.111.3
Compare Source
Bug fixes
e7148f3
@bep #1081934a86e1
@bep #108029818724
@deiningImprovements
d171d15
@jfish2d55af2a
@deining84201e8
@septs0f01bd4
@alexandear02ab77d
@alexandear873be9f
@davidejonesbebb2b8
@davidejonese6f029b
@davidejonesbdbfacb
@johannesengl #8536Dependency Updates
1c841ec
@niklasfaschingDocumentation
b6f44aa
@jmooring04b9811
@deiningv0.111.2
Compare Source
Bug fixes
b83050c
@bep #107943bbeb56
@bep #10789184a67a
@alexandeara950950
@jmooring #10783df5608f
@bep #107916c798eb
@bep #10782ec1c97e
@bep #1078136ce3a4
@alexandearDocumentation
f56ce01
@bepBuild Setup
f10009e
@bep #10785v0.111.1
Compare Source
This fixes the "page" not defined issue in Hugo
0.111.0
.eef23a7
@bep #10774v0.111.0
Compare Source
Hugo
0.111.0
is the second Hugo release of the year. Note: There's already a patch release.Notable news
Page Fragments
We added the new
.Fragments
method onPage
as part of the Related Content feature refresh (below), but it's plenty useful on its own, and has been long sought after by Hugo users.It has many uses: Build table of contents, check if a page fragment (heading identifier) exists on a page, check for duplicate heading identifiers, start table of contents from a specific heading identifier. See the Hugo Documentation for more information
Indexing of Page Fragments in Related Content
We have reworked the Related Content API so it's now one method
.Related
that takes either aPage
or an options map. We have also introduced a newtype
attribute on the index configuration with the new typefragments
. See this for details, but to add some weight to the page titles in the Related Content configuration you can do this:See the Hugo Documentation for more.
Global page func
Note: There was a bug in this release that made this new feature not working, so you need to upgrade to Hugo 0.111.1. We blame it on Go.
Hugo almost always passes a
Page
as the data context into the top level template (e.g.single.html
) (the one exception is the multihost sitemap template). This means that you can access the current page with the.
variable in the template.But when you're deeply nested inside
.Render
, partial etc., accessing thatPage
object isn't always practical or possible.For this reason, Hugo now provides a global
page
function that you can use to access the current page from anywhere in any template.Notes
.Fragments
structure from everywhere, even in render hooks (271318a
@bep #10750)66f94b4
@jmooring4ef9baf
@bep #4086 #9588Bug fixes
c0d15a2
@khayyamsaleem #10399ae48507
@bep #106722dad13c
@aaronhoopera1a9c08
@acclassic #1063273ece30
@khayyamsaleem #10682f9fc0e0
@bep #106981477d0b
@bep #106684ccc8cf
@jmooring1688583
@bep #10654Improvements
d453c12
@alexandear60e6fa7
@bep7e51ba0
@bep66f94b4
@jmooring2a61910
@bep079d1b6
@bepa669467
@bep #10732e314410
@alexandear39cc3a2
@WaltCuller #10738ce524d0
@bep #93392662faf
@jmooring #10592271318a
@bep #10750e442a63
@bep #107447d78a49
@bep #106750dbeac8
@bep #10671b99d073
@bepe965cb6
@jmooring #10470586fea0
@bepfa2d7ad
@bep #107114346987
@bepecf3cd5
@bep #106326abd15e
@bep #10691094135f
@bep #1069190da766
@bep #10711 #9339 #107250afec0a
@bep28540ed
@bep9af78d1
@bepd33a7eb
@bep #10698fce0890
@bep4f4a1c0
@bepe2cfc3d
@bep4ef9baf
@bep #4086 #9588Dependency Updates
db9f74d
@bep #107704d36b99
@dependabot[bot]807237b
@dependabot[bot]79b03b3
@dependabot[bot]4bf91b9
@dependabot[bot]2a364cc
@bep3fb2417
@jmooring #1066187c78bd
@dependabot[bot]69c369e
@jmooring #9890 #10692dd37163
@dependabot[bot]c3a59a7
@dependabot[bot] #9778Documentation
d5601e8
@bepcedd04d
@bepa56b907
@bep5c317c5
@bep #1076893ed6e4
@bepBuild Setup
4801e2e
@bep #1069176c6140
@anthonyfokd4482e8
@anthonyfok #10337v0.110.0
Compare Source
Note
3c51625
@bep #9620f38a2fb
@bep #8979Bug fixes
671f64b
@bep #10377f13531e
@bep #10604b5d4850
@bep #10616fbc3e08
@bepImprovements
d595419
@bep #106242fb40ec
@bep #10594c6b3887
@bep #1042921af5b3
@bep #10624f38a2fb
@bep #89796a579eb
@bep #10604f95fd57
@acclassic #10389e754d5c
@bep002cd52
@bepa76c405
@bepDependency Updates
6e9fa9e
@bep #10536Documentation
19e9605
@bep80e8bd3
@bepc4f3a46
@bepe402d91
@bepc0a03a2
@bepBuild Setup
dd6d0a6
@omarkohlv0.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
@bepb867fcc1c5
to8610858955
chore(deps): update dependency gohugoio/hugo to v0.111.3to chore(deps): update dependency gohugoio/hugo to v0.112.08610858955
to532ceccc60
chore(deps): update dependency gohugoio/hugo to v0.112.0to chore(deps): update dependency gohugoio/hugo to v0.112.1532ceccc60
todce2ccd22c
chore(deps): update dependency gohugoio/hugo to v0.112.1to chore(deps): update dependency gohugoio/hugo to v0.112.2dce2ccd22c
to91925faba1
chore(deps): update dependency gohugoio/hugo to v0.112.2to chore(deps): update dependency gohugoio/hugo to v0.112.391925faba1
to558e513fa5
chore(deps): update dependency gohugoio/hugo to v0.112.3to chore(deps): update dependency gohugoio/hugo to v0.112.4558e513fa5
toad55e5c84b
chore(deps): update dependency gohugoio/hugo to v0.112.4to chore(deps): update dependency gohugoio/hugo to v0.112.5