chore(deps): update dependency gohugoio/hugo to v0.111.3 - autoclosed #86
Loading…
Reference in New Issue
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.111.3
Release Notes
gohugoio/hugo
v0.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
@bep16a91d2256
to8eaa6b627b
chore(deps): update dependency gohugoio/hugo to v0.110.0to chore(deps): update dependency gohugoio/hugo to v0.111.08eaa6b627b
to62296c6e2b
chore(deps): update dependency gohugoio/hugo to v0.111.0to chore(deps): update dependency gohugoio/hugo to v0.111.162296c6e2b
to59669e15a4
chore(deps): update dependency gohugoio/hugo to v0.111.1to chore(deps): update dependency gohugoio/hugo to v0.111.259669e15a4
to0e7e185069
chore(deps): update dependency gohugoio/hugo to v0.111.2to chore(deps): update dependency gohugoio/hugo to v0.111.30e7e185069
to0c5141e849
chore(deps): update dependency gohugoio/hugo to v0.111.3to chore(deps): update dependency gohugoio/hugo to v0.111.3 - autoclosedPull request closed