Python-hugo

Latest version: v24.1.1

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

Scan your dependencies

Page 12 of 44

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

0.94.2

This is a bug-fix release that fixes a bug introduced in the bug fix release yesterday (some HTML comments in Markdown that made the parser panic):

* deps: Update github.com/yuin/goldmark v1.4.9 => v1.4.10 b37183e4 bep 9658

0.94.1

There are 2 fixes in this release. The first is a fix for a regression in Goldmark related to HTML comments in Markdown (see 9650). The other is that we have reverted the `--renderToStatic` feature and flag, as it didn't work on Windows. We didn't find any easy fix so that feature gets pushed to the next release, and then with proper cross-platform tests.

* docs: Regenerate CLI docs 3bc742be bep
* deps: Fix Goldmark regression with HTML comments 1a796d72 bep 9650
* Revert "Allow rendering static files to disk and dynamic to memory in server mode" 64b7b7a8 bep 9647
* Revert "Some minor adjustments to the new static filesystem logic" 5ef8a9f3 bep
* releaser: Prepare repository for 0.95.0-DEV 3bc34666 bep

0.94.0

**Up to 20% reduction in build time and memory usage.** That is the sales pitch for this release. In reality it depends (e.g. on how big and complex your site is), but we have [benchmarks](https://github.com/gohugoio/hugo/commit/4576c82ed462bc9c3934f76181101df1c5a4157e) and real site tests that show impressive improvements. It was quasilyte (see #9386) who tipped us about this potential. He had tested it with the [digitalgov.gov](https://github.com/GSA/digitalgov.gov) website with about 20% speedup.

**Post Release Update:** Hugo users are [reporting tremendous speed boosts](https://discourse.gohugo.io/t/hugo-0-94-0-released/37584/8?u=bep) of more than 50%.

Continuing on the performance theme, satotake has implemented a new **hybrid static filesystem** for Hugo's development server, which 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.

A final note goes to the new `linkifyProtocol` option in the [Goldmark Configuration](https://gohugo.io/getting-started/configuration-markup#goldmark) (see 9639). The `linkify` extension is enabled by default. It turns `www.example.org` and similar into clickable links. But before this release, the default protocol used was `http`. This is in line with the CommonMark spec, but that doesn't make much sense in 2022, so now you get `https` as the default.

This release represents **38 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), [jmooring](https://github.com/jmooring), and [satotake](https://github.com/satotake) 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 **3 contributions by 2 contributors**.

Hugo now has:

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


Notes

* minifiers: Make keepWhitespace = false default for HTML (note) c97fed08 jmooring 9456
* We now fail with error when double-rendering text in markdownify/RenderString 4e14cf76 bep 9570 8959
* markup/goldmark: Default to https for linkify 5697348e bep 9639

Changes

* docs: Regenerate docshelper a4ac188c bep
* Fail with error when double-rendering text in markdownify/RenderString 4e14cf76 bep 9570 8959
* markup/goldmark: Default to https for linkify 5697348e bep 9639
* Add lang attribute to internal alias template f98e570b jmooring 9586
* minifiers: Make keepWhitespace = false default for HTML (note) c97fed08 jmooring 9456
* markup/goldmark/codeblocks: Fix slice bounds out of range 53a6210d bep 9627
* Cache reflect.MethodByName 4576c82e bep
* releaser: Remove the GitHub link syntax around release contributors ff02d417 bep 9581
* Some minor adjustments to the new static filesystem logic 63bb2a5b bep 9625
* Allow rendering static files to disk and dynamic to memory in server mode 7d8011ed satotake 9625
* build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.8 to 2.2.9 b9a1be2f dependabot[bot]
* build(deps): bump github.com/evanw/esbuild from 0.14.23 to 0.14.25 09782450 dependabot[bot]
* build(deps): bump github.com/niklasfasching/go-org from 1.6.0 to 1.6.2 ff37df83 dependabot[bot]
* build(deps): bump github.com/getkin/kin-openapi from 0.90.0 to 0.91.0 5857d552 dependabot[bot]
* Remove the decorator from the fs used in ReadDir 0e0d672b bep 9609
* Update stale.yml 19f816f7 bep
* build(deps): bump github.com/yuin/goldmark from 1.4.7 to 1.4.8 970f385c dependabot[bot]
* Remove the examples/ folder 76c1248f bep
* markup/goldmark: Escape image alt attribute e46e9ceb jmooring 9594
* tpl/transform: Fix it when template.HTML is passes as option to Highlight 0327da05 bep 9591

0.93.3

The man motivation behind this release is 9609 -- a reported site breakage from a regression in `ReadDir` which with this release is back to how it worked in 0.92.0.

* Remove the decorator from the fs used in ReadDir 0e0d672b [bep](https://github.com/bep) #9609
* build(deps): bump github.com/yuin/goldmark from 1.4.7 to 1.4.8 970f385c [dependabot[bot]](https://github.com/apps/dependabot)

0.93.2

This is a bug-fix release with a couple of important fixes.

* tpl/os: Revert readDir in theme behaviour 673cde1e bep 9599
* markup/goldmark: Escape image alt attribute e46e9ceb jmooring 9594

Page 12 of 44

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.