Python-hugo

Latest version: v24.1.1

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

Scan your dependencies

Page 11 of 44

0.98.0

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

htmlbars
{{ $mystring := "Hugo" }}
{{ $colors := slice "orange" "blue" "green" "steel" "hotpink" }}
{{ $hash := (crypto.FNV32a $mystring) }}
{{ $i := mod $hash (len $colors) }}
{{ $color := index $colors $i }}


This release represents **29 contributions by 3 contributors** to the main Hugo code base.

Hugo now has:

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

Notes

* Deprecate page.Author and page.Authors 097fd588 bep

Changes

* docs: Regen docs helper a4fff575 bep
* Some godoc adjustments and image struct renames fa80fe3c bep
* tpl/crypto: Add FNV32a 11047534 bep
* markup/goldmark: Fix attribute nilpointer d7b54a4c bep 9819
* deps: Update to gocloud.dev v0.24.0 13ceef75 bep
* build(deps): bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0 942d0dd2 dependabot[bot]
* deps: Update github.com/yuin/goldmark v1.4.11 => v1.4.12 a022ca27 jmooring 9054 9756 9757
* build(deps): bump github.com/evanw/esbuild from 0.14.36 to 0.14.38 d56b3395 dependabot[bot]
* deps: Update github.com/tdewolff/minify/v2 v2.11.1 => v2.11.2 55e28c23 jmooring 9820
* Some godoc adjustments 9a888c24 bep
* tpl/lang: Handle nil values in lang.Merge 05b45c35 bep
* resources/page: Mark some more interface methods as internal 625be77e bep
* Deprecate page.Author and page.Authors 097fd588 bep
* releaser: Prepare repository for 0.98.0-DEV 41cc4e4b bep
* releaser: Bump versions for release of 0.97.3 078053a4 bep
* releaser: Add release notes for 0.97.3 [ci skip] 7d9f8880 bep
* Fix syncing of /static regression 9b352f04 bep 9794 9788
* Revert "Revert "Fix PostProcess regression for hugo server"" e66e2e9c bep 9794
* releaser: Prepare repository for 0.98.0-DEV 5de6f8a0 bep
* releaser: Bump versions for release of 0.97.2 5099abe6 bep
* releaser: Add release notes for 0.97.2 [ci skip] 99ec88d4 bep
* Revert "Fix PostProcess regression for hugo server" 6c35a1a9 bep
* releaser: Prepare repository for 0.98.0-DEV 363bc907 bep
* releaser: Bump versions for release of 0.97.1 04efcb2a bep
* releaser: Add release notes for 0.97.1 [ci skip] 45607255 bep
* Fix PostProcess regression for hugo server 4deb5c60 bep 9788
* Fix MediaType when reading images from cache 397fce56 bep 8931
* deps: Upgrade github.com/bep/overlayfs v0.4.0 => v0.5.0 0093eaa6 bep 9783
* releaser: Prepare repository for 0.98.0-DEV d0f731c0 bep

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

Page 11 of 44

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.