Hugo

Latest version: v0.139.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 18 of 51

0.102.0

**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](https://github.com/gohugoio/hugoreleaser), a custom build tool that allows us to [partition the build step](https://github.com/gohugoio/hugoreleaser#partitions). The Linux ARM64 binaries are built in its own Docker container, and we also get a general speedup of the entire build:

<img width="458" alt="image" src="https://user-images.githubusercontent.com/394382/187086315-ce02e0cb-9c4f-4f5c-a24e-4f9f003bb181.png">

In Circle CI, this is how the release flow looks like:

<img width="1023" alt="image" src="https://user-images.githubusercontent.com/394382/187086178-b1ab9bc5-1591-4a48-9338-975ac2ed2a3f.png">

In the above, `build_container1` is doing most of the work and is configured with `parallelism: 7` and partitioned using `$CIRCLE_NODE_TOTAL` and `$CIRCLE_NODE_INDEX`:

<img width="699" alt="image" src="https://user-images.githubusercontent.com/394382/187086203-b2af4770-2a31-41b4-88ce-8ac58ec6c578.png">

See the [CircleCI Config](https://github.com/gohugoio/hugo/blob/master/.circleci/config.yml) for details.

Notes

* The MacOS archives have been replaced with universal/fat binaries that works on all MacOS platforms, named *macOS-universal.tar.gz.
* These archives are removed: 32 bit Linux archives, Windows 32-bit and ARM, Linux ARM Deb. We may re-add some of these if enough people shout.

Bug fixes

* common/hugio: One more fix for non-OS fs f5ba6fd4 bep
* common/hugio: Fix CopyDir when fs is not OS c4bbc1ee bep
* markup/goldmark/codeblock: Fix attributes when no language identifier in CodeBlock cbdaff21 chick-p 10118
* commands: Fix embed in livereload.go 3fefea06 yyqqing

Improvements

* license: Add copyright info c9834841 bep 10218
* github: Use GitHub's Choco-Install function to retry installs f7e00c03 anthonyfok
* livereload: Inject script without head or body tag b017f7cb satotake 10105
* Externalise and embed livereload.js string 21562e3a satotake
* Cache when not found in LookupLayout 9c24b86e bep
* parser/pageparser: Don't store the byte slices 223bf280 bep
* Make the baseline benchmark's test files stable 72b0ccdb bep
* Accept vendor-specified build date if .git/ is unavailable 8ebcaa53 anthonyfok 10053
* Extract the baseline benchmark to a test d1278f69 bep
* Add a baseline benchmark 92f31ae6 bep

Dependency Updates

* build(deps): bump go.uber.org/atomic from 1.9.0 to 1.10.0 2de393c7 dependabot[bot]
* build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.9 to 2.2.10 7efb3568 dependabot[bot]
* build(deps): bump github.com/getkin/kin-openapi from 0.97.0 to 0.98.0 ddbcc671 dependabot[bot]
* deps: Update github.com/pelletier/go-toml/v2 v2.0.2 => v2.0.4 fd75f129 bep 10210
* build(deps): bump github.com/spf13/afero from 1.8.2 to 1.9.2 14878ca0 dependabot[bot]
* build(deps): bump github.com/tdewolff/parse/v2 from 2.6.1 to 2.6.2 e88873b8 dependabot[bot]
* build(deps): bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16 4219993b dependabot[bot]
* build(deps): bump github.com/rogpeppe/go-internal from 1.8.1 to 1.9.0 988e1417 dependabot[bot]
* build(deps): bump github.com/yuin/goldmark from 1.4.12 to 1.4.13 42529882 dependabot[bot]
* build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0 45f1b1cf dependabot[bot]
* build(deps): bump github.com/tdewolff/minify/v2 from 2.11.10 to 2.12.0 369bdf22 dependabot[bot]
* build(deps): bump github.com/evanw/esbuild from 0.14.43 to 0.15.5 d1b03a09 dependabot[bot]

Build Setup

* releaser: Bump versions for release of 0.102.0 0ff4a932 bep
* Add linux/arm64 extended to release setup 45e1084f bep 8257
* snap: Delete obsolete custom x-nodejs plugins 0e0fb1b6 anthonyfok
* releaser: Fat MacOS binaries 7fb28085 bep 9131
* Update to Go 1.19 0cd1929b bep 10145
* snap: Replace mage with "go build" and set VendorInfo=snap 24148193 anthonyfok
* snap: Use interface names etc-gitconfig and gitconfig, Take 2 5caed8a7 anthonyfok 6226
* snap: Use interface names etc-gitconfig and gitconfig fd3953c1 anthonyfok 6226
* releaser: Prepare repository for 0.102.0-DEV 15463f83 bep

Documentation

* readme: Add Golang URL to Go links 941c28ab reecerussell
* Update README.md ffbdcc75 bep
* Update README.md 95d97645 bep
* Update README.md b66f9f26 bep
* Update README.md 5c48ba93 bep 10136

0.101.0

Hugo `v0.101.0` comes with GIF animation [image processing](https://gohugo.io/content-management/image-processing/), a new `hl_inline` option for code highlighting, a new `:slugorfilename` permalink keyword, we now respect the [NO_COLOR](https://no-color.org/) OS env var, and more.

This release represents **35 contributions by 9 contributors** to the main Hugo code base.[bep](https://github.com/bep) leads the Hugo development with a significant amount of contributions, but also a big shoutout to [dependabot[bot]](https://github.com/apps/dependabot), [jmooring](https://github.com/jmooring), and [vanbroup](https://github.com/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](https://github.com/gohugoio/hugoDocs),
which has received **3 contributions by 2 contributors**.

Hugo now has:

* 59557+ [stars](https://github.com/gohugoio/hugo/stargazers)
* 428+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
* 399+ [themes](http://themes.gohugo.io/)


Changes

* build: Update to Go 1.18.3 2c5943dd bep 9964
* docs: Regen docshelper 0cb459a2 bep
* markup/highlight: Add hl_inline option d863dde6 bep 9442 9635 9638
* deps: Update github.com/alecthomas/chroma/v2 v2.1.0 => v2.2.0 580b214a bep
* build(deps): bump github.com/clbanning/mxj/v2 from 2.5.5 to 2.5.6 ddb95470 dependabot[bot]
* build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2 288b0fb1 dependabot[bot]
* build(deps): bump golang.org/x/tools from 0.1.10 to 0.1.11 3e134463 dependabot[bot]
* build(deps): bump github.com/tdewolff/minify/v2 from 2.11.5 to 2.11.10 7a9ce0ec dependabot[bot]
* build(deps): bump github.com/evanw/esbuild from 0.14.42 to 0.14.43 f2ba0cc8 dependabot[bot]
* build(deps): bump github.com/getkin/kin-openapi from 0.94.0 to 0.97.0 62ceaabd dependabot[bot]
* deps: Udpate to github.com/alecthomas/chroma/v2 35fa1928 bep 9932 9931
* common: Add hugo.GoVersion 09ac7333 khayyamsaleem 9849
* resources: Panic on Copy of Resource with .Err 66da1b7b bep 10006
* resources/page: Add :slugorfilename attribute 5a9ecb82 dawidpotocki 385
* Respect NO_COLOR cbc35c48 bep 10004
* readme: Update dependency list 44f3c079 deining
* Fix relURL with leading slash when baseURL includes a subdirectory a5a4422a bep 9994
* js: Resolve index.esm.js 617e0944 bep 8631
* Add animated GIF support cf12fa61 bep 5030
* resources: Add a Gif source file to golden tests 2e1c8177 bep
* releaser: Prepare repository for 0.101.0-DEV 4276075c bep
* releaser: Bump versions for release of 0.100.2 d25cb294 bep
* releaser: Add release notes for 0.100.2 [ci skip] 8b9bdc40 bep
* Update CONTRIBUTING.md 4e94d1db bep
* Fix raw TOML dates in where/eq 0566bbf7 bep 9979
* deps: Update to github.com/pelletier/go-toml/v2 v2.0.1 534e7155 anthonyfok
* tpl/path: Add path.BaseName function 953f215f jmooring 9973
* livereload: Use `X-Forwarded-Host` for Codespace 8e2fd559 satotake 9936
* helpers: Fix panic with invalid defaultMarkdownHandler 311b8008 bep 9968
* resources: Register MediaTypes before build c7d5f9f0 vanbroup 9971
* releaser: Prepare repository for 0.101.0-DEV bfebd8c0 bep
* releaser: Bump versions for release of 0.100.1 0afb4866 bep
* releaser: Add release notes for 0.100.1 [ci skip] b1ec0c22 bep
* Fix panic with markdownify/RenderString with shortcode on Page with no content file 212d9e30 bep 9959
* releaser: Prepare repository for 0.101.0-DEV 4daac654 bep

0.100.2

This release is mostly motivated by the fix for the panic experienced by people having `blackfriday` configured as `defaultMarkdownHandler` (9968). The Blackfriday support was removed in Hugo v0.100.0 after being deprecated with a warning for a long time.

* Fix raw TOML dates in where/eq 0566bbf7 bep 9979
* deps: Update to github.com/pelletier/go-toml/v2 v2.0.1 534e7155 anthonyfok
* tpl/path: Add path.BaseName function 953f215f jmooring 9973
* livereload: Use `X-Forwarded-Host` for Codespace 8e2fd559 satotake 9936
* helpers: Fix panic with invalid defaultMarkdownHandler 311b8008 bep 9968
* resources: Register MediaTypes before build c7d5f9f0 vanbroup 9971

0.100.1

Fix panic with markdownify/RenderString with shortcode on Page with no content file 212d9e30 bep 9959

0.100.0

$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:

1. We have added a new `.InnerIndent` method to the shortcode context to prevent the `highlight` shortcode from including in the indentation as part of the code block. See 4717.
2. Hugo now preserves the indentation for shortcode blocks. See more below.

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`:

md
* Culpa enim incididunt fugiat id dolore velit laboris veniam minim.
* Tempor ex nisi labore ad elit laborum ex ullamco aute labore eu occaecat.
* Deserunt mollit aliqua est laboris et irure eu non.
* Consectetur nulla minim non reprehenderit Lorem elit dolore quis.


And then use that shortcode in a content file:

md
* My List
{{% mylist %}}


In earlier versions of Hugo the above would render as:

<img width="582" alt="image" src="https://user-images.githubusercontent.com/394382/170958104-36a4673f-e51a-4b37-b0e8-6a0fda476929.png">

Now it renders as:

<img width="604" alt="image" src="https://user-images.githubusercontent.com/394382/170957864-028d1e64-b383-4681-b844-f9075e04d8ff.png">

Note that in the example above we use the `md` file suffix for the shortcode. In this release we also added `Markdown` 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](https://gohugo.io/hugo-pipes/introduction/#copy-a-resource) which allows you to copy almost any Hugo `Resource` (the one exception is the `Page`), possibly most useful for renaming things:

htmlbars
{{ $resized := $image.Resize "400x400" | resources.Copy "images/mynewname.jpg" } }}
<img src="{{ $resized.RelPermalink }}">


This release represents **32 contributions by 4 contributors** to the main Hugo code base.[bep](https://github.com/bep) leads the Hugo development with a significant amount of contributions, but also a big shoutout to [dependabot[bot]](https://github.com/apps/dependabot), [satotake](https://github.com/satotake), and [moorereason](https://github.com/moorereason) for their ongoing contributions.

Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs),
which has received **1 contributions by 1 contributors**.

Hugo now has:

* 59255+ [stars](https://github.com/gohugoio/hugo/stargazers)
* 428+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
* 399+ [themes](http://themes.gohugo.io/)


Notes

* The methods on Page `IsDescendant` and `IsAncestor` 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 }}` 9925
* We have removed Blackfriday as a Markdown option. It has been deprecated for a long time, its v1 version is not maintained anymore, and there are many known issues. Goldmark should be a mature replacement by now. 9944



Changes

* docs: Regen CLI docs 3fcbee26 bep
* docs: Regen docs helper db9d2742 bep
* Fix indentation in highlight shortcode 6f7bf3f2 bep 4717
* Make .RenderString render shortcodes 9e904d75 bep 6703
* Improve shortcode indentation handling d2cfaede bep 9946
* Add Markdown as an output format 322d19a8 bep 9821
* build(deps): bump github.com/evanw/esbuild from 0.14.39 to 0.14.42 7cb484e1 dependabot[bot]
* Run go mod tidy 0b395f0b bep
* Add a shortcode benchmark c1a83076 bep
* Remove Blackfriday markdown engine 0f8dc470 bep 9934
* Fix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itself 3b478f50 bep 9846
* build(deps): bump github.com/sanity-io/litter from 1.5.4 to 1.5.5 f343b8eb dependabot[bot]
* deps: Update to github.com/tdewolff/minify/v2 v2.11.5 60ede146 bep
* Don't use the baseURL /path as part of the resource cache key dd9eaf19 bep 9787
* postcss: Make the resource cache key more stable 46a2ea6d bep 9787
* commands: Fix case where languages cannot be configured 653ab2cc bep
* github: Set HUGO_BUILD_TAGS: extended when running tests 52edea0f bep 9935
* metrics: Fix divide by zero error 6a5acd75 moorereason
* Fix error message when PostCSS config file is not found 805b2155 bep 9927
* server: Skip watching dirs in ignoreFiles 8ca70525 bep 9838
* resources: Improve error message on .Resize etc. on SVGs bb232a35 bep 9875
* Fix Plainify edge cases 3854a6fa bep 9199 9909 9410
* Add resources.Copy cd0112a0 bep 9313
* basefs: add `noBuildLock` flag 6f7fbe03 satotake 9780
* import: Fix importing jekyll site 2fc2e9c8 satotake 9817
* releaser: Prepare repository for 0.100.0-DEV e164834f bep
* releaser: Bump versions for release of 0.99.1 d5240673 bep
* releaser: Add release notes for 0.99.1 [ci skip] 31ce89f7 bep
* releaser: Fix version replacement ee55fde5 bep
* server: Fix multihost crash 2f9eac48 bep 9901
* Update stale.yml 3a8189ee bep
* common/hugo: Fix version logic 7bc3401e bep

0.99.1

Fix server regression for multihost sites (multiple languages with different baseURLs) 2f9eac48 bep 9901

Page 18 of 51

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.