Hugo

Latest version: v0.127.0

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

Scan your dependencies

Page 15 of 47

0.97.3

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.

* Fix syncing of /static regression 9b352f04 bep 9794 9788
* Revert "Revert "Fix PostProcess regression for hugo server"" e66e2e9c bep 9794

0.97.2

**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 the `v0.97.0` or earlier for now.

This release reverts one of the fixes from yesterday, which broke more than it fixed:

* Revert "Fix PostProcess regression for hugo server" 6c35a1a9 bep

0.97.1

**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 the `v0.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.

* Fix PostProcess regression for hugo server 4deb5c60 bep 9788
* Fix MediaType when reading images from cache 397fce56 bep 8931
* Fix "Readdirnames with positive n not implemented" error with `--gc` in server mode 0093eaa6 bep 9783

0.97.0

This release comes with language-aware collation of text (for sorting, e.g. with `ByTitle`, `ByLinkTitle` and `ByParam`) (2180) and localized `GroupBy*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:

- alpha
- charlie
- echo
- sierra
- zulu
- émotion

With this release:

- alpha
- charlie
- echo
- émotion
- sierra
- zulu

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:

1. `hugo server` (default), renders to and serves all files from memory.
2. `hugo server --renderToDisk`, renders to and serves all files from disk.
3. `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 in `resources.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:


{{ $cacheKey := print $url (now.Format "2006-01-02") }}
{{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }}


This release represents **31 contributions by 6 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 [ifurther](https://github.com/ifurther) for their ongoing contributions. And thanks to [digitalcraftsman](https://github.com/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](https://github.com/gohugoio/hugoDocs),
which has received **19 contributions by 11 contributors**. A special thanks to [jmooring](https://github.com/jmooring), [danielfdickinson](https://github.com/danielfdickinson), [deining](https://github.com/deining), and [coliff](https://github.com/coliff) for their work on the documentation site.


Hugo now has:

* 58259+ [stars](https://github.com/gohugoio/hugo/stargazers)
* 429+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
* 397+ [themes](http://themes.gohugo.io/)


Changes

* releaser: Reduce parallelism d80d5a10 bep
* Revert "build(deps): bump gocloud.dev from 0.20.0 to 0.25.0" 842262f6 bep 9778
* resources: Add `key` to reources.GetRemote options map 2dbdf38a bep 9755
* build(deps): bump github.com/evanw/esbuild from 0.14.34 to 0.14.36 f8c4e169 dependabot[bot]
* Make string sorting (e.g. ByTitle, ByLinkTitle and ByParam) language aware 627eed1d bep 2180
* Fix gosum checksum errors 82ba634e bep 9771
* build(deps): bump github.com/tdewolff/minify/v2 from 2.11.0 to 2.11.1 d417a6cf dependabot[bot]
* compare: Add a string sort benchmark 13dac7f3 bep
* Replace all usage of CopyOnWriteFs with OverlayFs 30c2e54c bep 9761
* deps: Update github.com/tdewolff/minify/v2 v2.10.0 => v2.11.0 3117e585 jmooring 9713 9740
* docs: Regen CLI docs ffe3eb91 bep
* Rework the Destination filesystem to make --renderStaticToDisk work d070bdf1 bep 9626
* Revert "Revert "Some minor adjustments to the new static filesystem logic"" b0819397 bep
* Revert "Revert "Allow rendering static files to disk and dynamic to memory in server mode"" 0a56f2af bep
* build(deps): bump github.com/evanw/esbuild from 0.14.31 to 0.14.34 9e360d38 dependabot[bot]
* modules/client: Vendor config directory if present a8c221d3 jmooring 9751
* resources: Create a common ResourceFinder interface e58a5408 bep 8653
* build(deps): bump gocloud.dev from 0.20.0 to 0.25.0 20162518 dependabot[bot]
* build(deps): bump golang.org/x/tools from 0.1.9 to 0.1.10 6b469cc8 dependabot[bot]
* build(deps): bump github.com/magefile/mage from 1.12.1 to 1.13.0 080dcac6 dependabot[bot]
* build(deps): bump github.com/gobuffalo/flect from 0.2.4 to 0.2.5 072fc8cc dependabot[bot]
* Localize all the GroupBy*Date methods 658e11eb bep 9745
* build(deps): bump github.com/getkin/kin-openapi from 0.93.0 to 0.94.0 e0a882fd dependabot[bot]
* deploy: Set an MD5 attribute and use that if eTag not available d0657a43 davidejones
* build(deps): bump github.com/sanity-io/litter from 1.5.2 to 1.5.4 a6e2e38b dependabot[bot]
* build(deps): bump github.com/evanw/esbuild from 0.14.25 to 0.14.31 510e1790 dependabot[bot]
* build(deps): bump github.com/frankban/quicktest from 1.14.2 to 1.14.3 21484f9e dependabot[bot]
* Add environment as a new filter to _cascade.target da00e771 CathrinePaulsen 9612
* Merge branch 'release-0.96.0' ed9aa374 bep
* Snap: Add {system,user}-gitconfig plugs to read gitconfig (9619) 2a231b0b ifurther
* releaser: Prepare repository for 0.97.0-DEV 69c59008 bep

0.96.0

**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](https://discourse.gohugo.io/t/do-all-page-bundles-need-localized-copies-once-you-add-a-new-language/37225/12?u=bep) how useful this could be, and even provided this example where missing translations gets filled in from other language(s):

toml
------------------------------------------------------------------------------
Content mounts
------------------------------------------------------------------------------

EN content
[[module.mounts]]
source = 'content/en'
target = 'content'
lang = 'en'

DE content
[[module.mounts]]
source = 'content/de'
target = 'content'
lang = 'de'

NL content
[[module.mounts]]
source = 'content/nl'
target = 'content'
lang = 'nl'

------------------------------------------------------------------------------
Fill in the missing translations
------------------------------------------------------------------------------

This fills in the gaps in DE content with EN content
[[module.mounts]]
source = 'content/en'
target = 'content'
lang = 'de'

This fills in the gaps in NL content with EN content.
[[module.mounts]]
source = 'content/en'
target = 'content'
lang = 'nl'


Also, we have added some details to the `.Err` object you get when `resources.GetRemote` fails, which can be useful when debugging errrors (see 9708). Not you can do something like:

htmlbars
{{ with $result := resources.GetRemote $url }}
{{ with .Err }}
{{ warnf "%s: %v" .Error .Data}}
{{ else }}
{{ with .Content | unmarshal }}
{{ warnf "%v" . }}
{{ end }}
{{ end }}
{{ end }}


The `.Data` object above is a `map` and currently contains `StatusCode`, `Status`, `Body`, `TransferEncoding`, `ContentLength`, and `ContentType`.

This release represents **23 contributions by 8 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 [jmooring](https://github.com/jmooring), [dependabot[bot]](https://github.com/apps/dependabot), and [anthonyfok](https://github.com/anthonyfok) for their ongoing contributions.
And thanks to [digitalcraftsman](https://github.com/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](https://github.com/gohugoio/hugoDocs),
which has received **5 contributions by 3 contributors**.

Hugo now has:

* 57897+ [stars](https://github.com/gohugoio/hugo/stargazers)
* 429+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
* 397+ [themes](http://themes.gohugo.io/)


Notes

* Deprecate .File.Extension 94459680 sara-meie 9352


Changes

* docs: Regen docshelper db1562e1 bep
* docs: Regen CLI docs 5b18e108 bep
* Deprecate .File.Extension 94459680 sara-meie 9352
* resources: Add more details to .Err 9202117b bep 9708
* commands: Change link protocol to https a6fa290f jmooring
* build(deps): bump github.com/getkin/kin-openapi from 0.91.0 to 0.93.0 0bbc2fb5 dependabot[bot]
* tpl/crypto: Add optional encoding arg to hmac function 94e8a907 jmooring 9709
* Fix typo a461e9d0 panakour
* Fix some typos 48c98a8d cuishuang
* Update CONTRIBUTING.md to use "go install" to install mage bbd455fe anthonyfok
* Dockerfile: Make it build with Go 1.18 8309a2b1 anthonyfok
* snap: Make it build with Go 1.18 2b723109 anthonyfok
* build(deps): bump github.com/yuin/goldmark from 1.4.10 to 1.4.11 13ff4ded dependabot[bot]
* build(deps): bump github.com/spf13/cobra from 1.3.0 to 1.4.0 c3289eb5 dependabot[bot]
* commands: Improve server startup to make tests less flaky 9539069f bep
* all: Use strings.Cut 0e305d69 bep 9687
* Support '-u=patch' in hugo mod get 5adb81ce LukeDeWaal 9127
* Make sure file mounts higher up wins 1c0e7c1a bep 9693
* resources/images: Require width and height for Crop, Fill, and Fit cad2d8cc jmooring 9696
* all: gofmt -w -r 'interface{} -> any' . b80853de bep 9687
* dartsass: Enable deprecation, warn and debug logging 423594e0 bep 9683
* Use revision etc. from debug.BuildInfo 64afb7ca bep 9680
* releaser: Prepare repository for 0.96.0-DEV 004bec2e bep

0.95.0

**Even faster, continue and break support, short-circuit of the built-in and/or-operators.** This release upgrades to Go 1.18 which was released yesterday. This has made Hugo even faster. How much faster will depend on your site etc., but we have [benchmarks](https://github.com/gohugoio/hugo/commit/9d6495d774233941b6e895e52870092fb1ca0134) that show significant improvements. But the main reason we're exited about this is the improvements in Go templates:

There are two new keywords, [`break` and `continue`](https://github.com/golang/go/issues/20531). These behaves like you would expect coming from other programming languages:

htmlbars
{{ range $i, $p := site.RegularPages }}
{{ if gt $i 2 }}
{{/* Break out of range, we only want to print the first 3 pages. */}}
{{ break }}
{{ end }}
{{ $p.Title }}
{{ end }}


htmlbars
{{ range $i, $p := site.RegularPages }}
{{ if eq $i 2 }}
{{/* Skip the 3rd page. */}}
{{ continue }}
{{ end }}
{{ $p.Title }}
{{ end }}


Also, the two built-in operators/function `and` and `or` now [short-circuits](https://github.com/golang/go/issues/31103), also in line with how `&&` and `||` behave in other programming languages. This is useful in situations where the right side may have side effects (may be `nil`, is slow to execute etc.):

htmlbars
{{ if and .File (eq .File.Extension "html") }}
{{ end }}


Hugo now has:

* 57648+ [stars](https://github.com/gohugoio/hugo/stargazers)
* 429+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
* 397+ [themes](http://themes.gohugo.io/)

Notes

* Hugo now only builds with Go versions >= 1.18. Note that you do not need Go installed to run Hugo, and for Hugo Modules, any recent Go version can be used.

Changes

* readme: Add note about Go 1.18 5930173c bep
* tpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ break }}" bug 3476b533 bep
* readme: Add a contribution note e792d270 bep
* github: Make it build with Go 1.18 9d6495d7 bep
* tpl: Adjustments and an integration test for Go 1.18 42cc5f88 bep 9677
* Remove Go 1.17 support a6488e7b bep 9677
* tpl: Sync go_templates for Go 1.18 65a78cae bep 9677
* build: Bump to Go 1.18 4d6d1d08 bep 9677
* dartsass: Improve error message when no read access b60e1bbd bep 9662
* Fix and refactor typos 61cf3c9f CathrinePaulsen
* Improve server startup/shutdown 31fbc081 bep 9671
* commands: Improve server tests cebd886a bep 9647

Page 15 of 47

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.