ci(deps): update dependency hugo to v0.101.0 - autoclosed #2
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.101.0
Release Notes
gohugoio/hugo (hugo)
v0.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
@bep #9979534e715
@anthonyfok953f215
@jmooring #9973X-Forwarded-Host
for Codespace8e2fd55
@satotake #9936311b800
@bep #9968c7d5f9f
@vanbroup #9971v0.100.1
Compare Source
Fix panic with markdownify/RenderString with shortcode on Page with no content file
212d9e3
@bep #9959v0.100.0
Compare Source
$page.RenderString
(see #6703) finally supports shortcodes, and shortcode improvements is the main theme in Hugo 0.100.0.Indentation fixes for shortcode blocks: We now record the indentation before the opening shortcode tag when parsing the source. This allow us to fix a couple of annoying issues in Hugo:
.InnerIndent
method to the shortcode context to prevent thehighlight
shortcode from including in the indentation as part of the code block. See #4717.A shortcode block is when the shortcode is included as the first non-whitespace content on a line. Note that this does not touch shortcodes with inner content, where the user is in control of the indentation. See issue #9946 for more information. An example, say that I have this in
layouts/shortcodes/mylist.md
:And then use that shortcode in a content file:
* My List {{% mylist %}}
In earlier versions of Hugo the above would render as:
Now it renders as:
Note that in the example above we use the
md
file suffix for the shortcode. In this release we also addedMarkdown
as a built-in output format in Hugo, defined as a plain text format, meaning you get more lenient parsing compared to HTML. Using this if your shortcode produces Markdown has fewer quirks. See #9821.Also noteworthy is the new template function resources.Copy which allows you to copy almost any Hugo
Resource
(the one exception is thePage
), possibly most useful for renaming things:This release represents 32 contributions by 4 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], @satotake, and @moorereason for their ongoing contributions.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 1 contributions by 1 contributors.
Hugo now has:
Notes
IsDescendant
andIsAncestor
now return false for itself, which is obviously the correct behaviour. We have fixed this before, but reverted it because it broke some theme's logic. Looking back, that reversion was a mistake. If you want the old logic you can get that by doing something ala{{ if or (eq $p1 $p2) ($p1.IsAncestor $p2) }}{{ end }}
#9925Changes
3fcbee2
@bepdb9d274
@bep6f7bf3f
@bep #47179e904d7
@bep #6703d2cfaed
@bep #9946322d19a
@bep #98217cb484e
@dependabot[bot]0b395f0
@bepc1a8307
@bep0f8dc47
@bep #99343b478f5
@bep #9846f343b8e
@dependabot[bot]60ede14
@bepdd9eaf1
@bep #978746a2ea6
@bep #9787653ab2c
@bep52edea0
@bep #99356a5acd7
@moorereason805b215
@bep #99278ca7052
@bep #9838bb232a3
@bep #98753854a6f
@bep #9199 #9909 #9410cd0112a
@bep #9313noBuildLock
flag6f7fbe0
@satotake #97802fc2e9c
@satotake #9817e164834
@bepd524067
@bep31ce89f
@bepee55fde
@bep2f9eac4
@bep #99013a8189e
@bep7bc3401
@bepv0.99.1
Compare Source
Fix server regression for multihost sites (multiple languages with different baseURLs)
2f9eac4
@bep #9901v0.99.0
Compare Source
The theme of this release is error handling – a topic grievously underrated in most development tools. You are often expected to Google this mysterious error and end up in some Stackoverflow thread telling you to use a specific Node version. Hugo has done an OK job in this department, but when I, @bep, recently got stuck with a minify error I had no clue how to debug, I knew we had to take another look at this. There is a list of "error improvements below", but here is one visual example:
The two screenshots above is from the same template error in Hugo
v0.98.0
(left) and the newv0.99.0
(right). This is a type error (method not found) in a partial included in a shortcode template. We did a decent job inv0.98.0
, too, pointing at correct line in the partial. But the right version has the full stack, with absolute filename, line and column and some file context (highlighted lines) for all of the files involved in the error (Markdown file, shortcode and partial). Having these source file references to click on in the VS Code terminal is a real time saver, especially in Hugo projects with mulitiple file roots (themes, theme components).A list of the most important "error improvements":
layouts/_server/error.html
), always add the content file context if relevant, improve JS errors, Add file context (with position) to codeblock render blocks, add file context to errors in the publishing step (e.g. minify), and more. #9892 #9891 #9893Also worth mentioning is the new
clock
cli flag (#8787 ) which allows you to "set the clock" and see how your site looks like ... in the future.This release represents 24 contributions by 4 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], @satotake, and @nathannaveen for their ongoing contributions.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 3 contributions by 2 contributors.
Hugo now has:
Notes
inlineImports=true
enabled forresources.PostCSS
. See https://gohugo.io/hugo-pipes/postcss/#optionsChanges
657d1a2
@bep87a22eb
@bep #9664fc9f315
@bep #98974b189d8
@bep #9895c2fa0a3
@dependabot[bot]48ea24f
@bep9f56385
@dependabot[bot]5c96bda
@bep #9892 #9891 #98934a96df9
@bep #9884e8537e6
@bep #98802fbdee7
@bep91fe1b6
@bep7de6291
@bep9d7f166
@bep51f08b0
@bep #9868860c51c
@bep #9865855e586
@bep35c88a7
@bep #8787clock
cli flage77ca3c
@satotake #8787f2946da
@bep #9852 #9857 #98636eea32b
@bepa6d5458
@nathannaveene5f2173
@bep89c1655
@bepv0.98.0
Compare Source
This release is mostly some important upgrades of Hugo's core dependencies, but we have also added
crypto.FNV32a
template function, which produces 32-bit unsigned integer hashes from a string. We have already many hash functions, but none of them produces an integer, which can be useful, e.g.:This release represents 29 contributions by 3 contributors to the main Hugo code base.
Hugo now has:
Notes
097fd58
@bepChanges
a4fff57
@bepfa80fe3
@bep1104753
@bepd7b54a4
@bep #981913ceef7
@bep942d0dd
@dependabot[bot]a022ca2
@jmooring #9054 #9756 #9757d56b339
@dependabot[bot]55e28c2
@jmooring #98209a888c2
@bep05b45c3
@bep625be77
@bep097fd58
@bep41cc4e4
@bep078053a
@bep7d9f888
@bep9b352f0
@bep #9794 #9788e66e2e9
@bep #97945de6f8a
@bep5099abe
@bep99ec88d
@bep6c35a1a
@bep363bc90
@bep04efcb2
@bep4560725
@bep4deb5c6
@bep #9788397fce5
@bep #89310093eaa
@bep #9783d0f731c
@bepv0.97.3
Compare Source
The
v0.97.x
release has been an Easter riddle. The new--renderStaticToDisk
flag required a consolidation of the file systems in Hugo, which introduced a bug. The fix for that bug introduced a new bug, and reverting the obvious pick of the two candidate commits ... did not resolve the issue.OK, all good things are three, and now with proper tests to avoid this particular issue happening again.
9b352f0
@bep #9794 #9788e66e2e9
@bep #9794v0.97.2
Compare Source
NOTE: We seem to have introduced an issue with /static synching of files in this release, so we recommend wait for the
v0.97.3
and roll back to thev0.97.0
or earlier for now.This release reverts one of the fixes from yesterday, which broke more than it fixed:
6c35a1a
@bepv0.97.1
Compare Source
NOTE: We seem to have introduced an issue with /static synching of files in this release, so we recommend wait for the
v0.97.3
and roll back to thev0.97.0
or earlier for now.This is a bug-fix release with a couple of important fixes. Note that the
MediaType
on image conversion bug isn't a regression, that bug has been there since we added the target format option to the image processing methods.4deb5c6
@bep #9788397fce5
@bep #8931--gc
in server mode0093eaa
@bep #9783v0.97.0
Compare Source
This release comes with language-aware collation of text (for sorting, e.g. with
ByTitle
,ByLinkTitle
andByParam
) (#2180) and localizedGroupBy*Date
methods (#9745 ).The new text sorting algorithm means among other things that text with accents in them gets ordered the way you would expect. Before this release:
With this release:
This release also re-introduces the new server flag
--renderStaticToDisk
, which enables a new hybrid static filesystem for Hugo's development server. This is great for sites with lots of static content, as it greatly reduces memory consumption while still keeping the fast render times by writing dynamic content to memory (the definition of static content in Hugo is all files mounted in/static
and all files in/content
that's not content files or a member of a content bundle). With this update, there are now 3 filesystem options when starting the server:hugo server
(default), renders to and serves all files from memory.hugo server --renderToDisk
, renders to and serves all files from disk.hugo server --renderStaticToDisk
(the new hybrid mode), renders to and serves static files from disk, dynamic files from memory.One final improvement to mention would be the new
key
option inresources.GetRemote
, which, is set, will be used as the cache key. The default behaviour is to calculate the key based on the URL and all the options. This means that you can now do:This release represents 31 contributions by 6 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 @ifurther for their ongoing contributions. And thanks to @digitalcraftsman for his ongoing work on keeping the themes site in pristine condition.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 19 contributions by 11 contributors. A special thanks to @jmooring, @danielfdickinson, @deining, and @coliff for their work on the documentation site.
Hugo now has:
Changes
d80d5a1
@bep842262f
@bep #9778key
to reources.GetRemote options map2dbdf38
@bep #9755f8c4e16
@dependabot[bot]627eed1
@bep #218082ba634
@bep #9771d417a6c
@dependabot[bot]13dac7f
@bep30c2e54
@bep #97613117e58
@jmooring #9713 #9740ffe3eb9
@bepd070bdf
@bep #9626b081939
@bep0a56f2a
@bep9e360d3
@dependabot[bot]a8c221d
@jmooring #9751e58a540
@bep #86532016251
@dependabot[bot]6b469cc
@dependabot[bot]080dcac
@dependabot[bot]072fc8c
@dependabot[bot]658e11e
@bep #9745e0a882f
@dependabot[bot]d0657a4
@davidejonesa6e2e38
@dependabot[bot]510e179
@dependabot[bot]21484f9
@dependabot[bot]da00e77
@CathrinePaulsen #9612ed9aa37
@bep2a231b0
@ifurther69c5900
@bepv0.96.0
Compare Source
Vertical merging of content mounts. The main topic of this release is about file mounts (see #9693). We have had a powerful and well defined merge strategy for the union filesystems for the Hugo Modules tree on the horizontal axis (left to right), but not so much for the vertical configuration within each module (e.g. multiple content mounts for the same language). It was @jmooring who pointed out how useful this could be, and even provided this example where missing translations gets filled in from other language(s):
Also, we have added some details to the
.Err
object you get whenresources.GetRemote
fails, which can be useful when debugging errrors (see #9708). Not you can do something like:The
.Data
object above is amap
and currently containsStatusCode
,Status
,Body
,TransferEncoding
,ContentLength
, andContentType
.This release represents 23 contributions by 8 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @jmooring, @dependabot[bot], and @anthonyfok for their ongoing contributions.
And thanks to @digitalcraftsman for his ongoing work on keeping the themes site in pristine condition.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 5 contributions by 3 contributors.
Hugo now has:
Notes
9445968
@sara-meie #9352Changes
db1562e
@bep5b18e10
@bep9445968
@sara-meie #93529202117
@bep #9708a6fa290
@jmooring0bbc2fb
@dependabot[bot]94e8a90
@jmooring #9709a461e9d
@panakour48c98a8
@cuishuangbbd455f
@anthonyfok8309a2b
@anthonyfok2b72310
@anthonyfok13ff4de
@dependabot[bot]c3289eb
@dependabot[bot]9539069
@bep0e305d6
@bep #96875adb81c
@LukeDeWaal #91271c0e7c1
@bep #9693cad2d8c
@jmooring [#9696](https://redirect.github.com/gohugoioConfiguration
📅 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.