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 39 of 44

0.25.1

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


Hugo now has:

* 18277+ [stars](https://github.com/gohugoio/hugo/stargazers)
* 456+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
* 170+ [themes](http://themes.gohugo.io/)

Fixes

* Fix union when the first slice is empty [dbbc5c48](https://github.com/gohugoio/hugo/commit/dbbc5c4810a04ac06fad7500d88cf5c3bfe0c7fd) [bep](https://github.com/bep) [#3686](https://github.com/gohugoio/hugo/issues/3686)
* Navigate to changed on CREATE When working with content from IntelliJ IDE, like WebStorm, every file save is followed by two events: "RENAME" and then "CREATE". [7bcc1ce6](https://github.com/gohugoio/hugo/commit/7bcc1ce659710f2220b400ce3b76e50d2e48b241) [miltador](https://github.com/miltador)
* Final (!) fix for issue with escaped JSON front matter [7f82b41a](https://github.com/gohugoio/hugo/commit/7f82b41a24af0fd04d28fbfebf9254766a3c6e6f) [bep](https://github.com/bep) [#3682](https://github.com/gohugoio/hugo/issues/3682)
* Fix issue with escaped JSON front matter [84db6c74](https://github.com/gohugoio/hugo/commit/84db6c74a084d2b52117b999d4ec343cd3389a68) [bep](https://github.com/bep) [#3682](https://github.com/gohugoio/hugo/issues/3682)







---
Automated with [GoReleaser](https://github.com/goreleaser)
Built with go version go1.8.3 darwin/amd64

0.25

Hugo `0.25` is the **Kinder Surprise**: It automatically opens the page you&39;re working on in the browser, it adds full `AND` and `OR` support in page queries, and you can now have templates per language.

![Hugo Open on Save](https://cdn-standard5.discourse.org/uploads/gohugo/optimized/2X/6/622088d4a8eacaf62bbbaa27dab19d789e10fe09_1_690x345.gif "Hugo Open on Save")

If you start with `hugo server --navigateToChanged`, Hugo will navigate to the relevant page on save (see animated GIF). This is extremely useful for site-wide edits. Another very useful feature in this version is the added support for `AND` (`intersect`) and `OR` (`union`) filters when combined with `where`.

Example:

go
{{ $pages := where .Site.RegularPages "Type" "not in" (slice "page" "about") }}
{{ $pages := $pages | union (where .Site.RegularPages "Params.pinned" true) }}
{{ $pages := $pages | intersect (where .Site.RegularPages "Params.images" "!=" nil) }}


The above fetches regular pages not of `page` or `about` type unless they are pinned. And finally, we exclude all pages with no `images` set in Page params.

This release represents **36 contributions by 12 contributors** to the main Hugo code base. [bep](https://github.com/bep) still leads the Hugo development with his witty Norwegian humor, and once again contributed a significant amount of additions. But also a big shoutout to [yihui](https://github.com/yihui), [anthonyfok](https://github.com/anthonyfok), and [kropp](https://github.com/kropp) for their ongoing contributions. And as always a big thanks to [digitalcraftsman](https://github.com/digitalcraftsman) for his relentless work on keeping the documentation and the themes site in pristine condition.

Hugo now has:

* 18209&43; [stars](https://github.com/gohugoio/hugo/stargazers)
* 455&43; [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
* 168&43; [themes](http://themes.gohugo.io/)

Enhancements

Templates

* Add `Pages` support to `intersect` (`AND`) and `union`(`ÒR`). This makes the `where` template func even more powerful. [ccdd08d5](https://github.com/gohugoio/hugo/commit/ccdd08d57ab64441e93d6861ae126b5faacdb92f) [bep](https://github.com/bep) [#3174](https://github.com/gohugoio/hugo/issues/3174)
* Add `math.Log` function. This is very handy for creating tag clouds. [34c56677](https://github.com/gohugoio/hugo/commit/34c566773a1364077e1397daece85b22948dc721) [artem-sidorenko](https://github.com/artem-sidorenko)
* Add `WebP` images support [8431c8d3](https://github.com/gohugoio/hugo/commit/8431c8d39d878c18c6b5463d9091a953608df10b) [bep](https://github.com/bep) [#3529](https://github.com/gohugoio/hugo/issues/3529)
* Only show post&39;s own keywords in schema.org [da72805a](https://github.com/gohugoio/hugo/commit/da72805a4304a57362e8e79a01cc145767b027c5) [brunoamaral](https://github.com/brunoamaral) [#2635](https://github.com/gohugoio/hugo/issues/2635)[#2646](https://github.com/gohugoio/hugo/issues/2646)
* Simplify the `Disqus` template a little bit (3655) [eccb0647](https://github.com/gohugoio/hugo/commit/eccb0647821e9db20ba9800da1b4861807cc5205) [yihui](https://github.com/yihui)
* Improve the built-in Disqus template (3639) [2e1e4934](https://github.com/gohugoio/hugo/commit/2e1e4934b60ce8081a7f3a79191ed204f3098481) [yihui](https://github.com/yihui)

Output

* Support templates per site/language. This is for both regular templates and shortcode templates. [aa6b1b9b](https://github.com/gohugoio/hugo/commit/aa6b1b9be7c9d7322333893b642aaf8c7a5f2c2e) [bep](https://github.com/bep) [#3360](https://github.com/gohugoio/hugo/issues/3360)

Core

* Extend the sections API [a1d260b4](https://github.com/gohugoio/hugo/commit/a1d260b41a6673adef679ec4e262c5f390432cf5) [bep](https://github.com/bep) [#3591](https://github.com/gohugoio/hugo/issues/3591)
* Make `.Site.Sections` return the top level sections [dd9b1baa](https://github.com/gohugoio/hugo/commit/dd9b1baab0cb860a3eb32fd9043bac18cab3f9f0) [bep](https://github.com/bep) [#3591](https://github.com/gohugoio/hugo/issues/3591)
* Render `404.html` for all languages [41805dca](https://github.com/gohugoio/hugo/commit/41805dca9e40e9b0952e04d06074e6fc91140495) [mitchchn](https://github.com/mitchchn) [#3598](https://github.com/gohugoio/hugo/issues/3598)

Other

* Support human-readable `YAML` boolean values in `undraft` [1039356e](https://github.com/gohugoio/hugo/commit/1039356edf747f044c989a5bc0e85d792341ed5d) [kropp](https://github.com/kropp)
* `hugo import jekyll` support nested `_posts` directories [7ee1f25e](https://github.com/gohugoio/hugo/commit/7ee1f25e9ef3be8f99c171e8e7982f4f82c13e16) [coderzh](https://github.com/coderzh) [#1890](https://github.com/gohugoio/hugo/issues/1890)[#1911](https://github.com/gohugoio/hugo/issues/1911)
* Update `Dockerfile` and add Docker optimizations [118f8f7c](https://github.com/gohugoio/hugo/commit/118f8f7cf22d756d8a894ff93551974a806f2155) [ellerbrock](https://github.com/ellerbrock)
* Add Blackfriday `joinLines` extension support (3574) [a5440496](https://github.com/gohugoio/hugo/commit/a54404968a4b36579797f2e7ff7f5eada94866d9) [choueric](https://github.com/choueric)
* add `--initial-header-level=2` to rst2html (3528) [bfce30d8](https://github.com/gohugoio/hugo/commit/bfce30d85972c27c27e8a2caac9db6315f813298) [frankbraun](https://github.com/frankbraun)
* Support open "current content page" in browser [c825a731](https://github.com/gohugoio/hugo/commit/c825a7312131b4afa67ee90d593640dee3525d98) [bep](https://github.com/bep) [#3643](https://github.com/gohugoio/hugo/issues/3643)
* Make `--navigateToChanged` more robust on Windows [30e14cc3](https://github.com/gohugoio/hugo/commit/30e14cc31678ddc204b082ab362f86b6b8063881) [anthonyfok](https://github.com/anthonyfok) [#3645](https://github.com/gohugoio/hugo/issues/3645)
* Remove the docs submodule [31393f60](https://github.com/gohugoio/hugo/commit/31393f6024416ea1b2e61d1080dfd7104df36eda) [bep](https://github.com/bep) [#3647](https://github.com/gohugoio/hugo/issues/3647)
* Use `example.com` as homepage for new theme [aff1ac32](https://github.com/gohugoio/hugo/commit/aff1ac3235b6c075d01f7237addf44fecdd36d82) [anthonyfok](https://github.com/anthonyfok)

Fixes

Templates

* Fix `in` function for JSON arrays [d12cf5a2](https://github.com/gohugoio/hugo/commit/d12cf5a25df00fa16c59f0b2ae282187a398214c) [bep](https://github.com/bep) [#1468](https://github.com/gohugoio/hugo/issues/1468)

Other

* Fix handling of `JSON` front matter with escaped quotes [e10e51a0](https://github.com/gohugoio/hugo/commit/e10e51a00827b9fdc1bee51439fef05afc529831) [bep](https://github.com/bep) [#3661](https://github.com/gohugoio/hugo/issues/3661)
* Fix typo in code comment [56d82aa0](https://github.com/gohugoio/hugo/commit/56d82aa025f4d2edb1dc6315132cd7ab52df649a) [dvic](https://github.com/dvic)


---
Automated with goreleaser
Built with go version go1.8.3 darwin/amd64

0.24.1

This release fixes some important **archetype-related regressions** from the recent Hugo 0.24-relase.

Fixes

* Fix archetype regression when no archetype file [4294dd8d](https://github.com/gohugoio/hugo/commit/4294dd8d9d22bd8107b7904d5389967da1f83f27) [bep](https://github.com/bep) [#3626](https://github.com/gohugoio/hugo/issues/3626)
* Preserve shortcodes in archetype templates [b63e4ee1](https://github.com/gohugoio/hugo/commit/b63e4ee198c875b73a6a9af6bb809589785ed589) [bep](https://github.com/bep) [#3623](https://github.com/gohugoio/hugo/issues/3623)
* Fix handling of timezones with positive UTC offset (e.g., +0800) in TOML [0744f81e](https://github.com/gohugoio/hugo/commit/0744f81ec00bb8888f59d6c8b5f57096e07e70b1) [bep](https://github.com/bep) [#3628](https://github.com/gohugoio/hugo/issues/3628)

Enhancements

* Create default archetype on new site [bfa336d9](https://github.com/gohugoio/hugo/commit/bfa336d96173377b9bbe2298dbd101f6a718c174) [bep](https://github.com/bep) [#3626](https://github.com/gohugoio/hugo/issues/3626)






---
Automated with goreleaser
Built with go version go1.8.3 darwin/amd64

0.24

This is **The Revival of the Archetypes!**

> "A feature that could be the name of the next Indiana Jones movie deserves its own release," says [bep](https://github.com/bep).

Hugo now handles the **archetype files as Go templates**. This means that the issues with sorting and lost comments are long gone. This also means that you will have to supply all values, including title and date. But this also opens up a lot of new windows.

A fictional example for the section `newsletter` and the archetype file `archetypes/newsletter.md`:

markdown
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
---

**Insert Lead paragraph here.**

<!--more-->

New Cool Posts

{{ range first 10 ( where .Site.RegularPages "Type" "cool" ) }}
* {{ .Title }}
{{ end }}


And then create a new post with:

bash
hugo new newsletter/the-latest-cool.stuff.md


**Note:** the site will only be built if the `.Site` is in use in the archetype file, and this can be time consuming for big sites.

**Hot Tip:** If you set the `newContentEditor` configuration variable to an editor on your `PATH`, the newly created article will be opened.

The above _newsletter type archetype_ illustrates the possibilities: The full Hugo `.Site` and all of Hugo&39;s template funcs can be used in the archetype file.

**Also, Hugo now supports archetype files for all content formats, not just markdown.**

Hugo now has:

* 17839&43; [stars](https://github.com/gohugoio/hugo/stargazers)
* 493&43; [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
* 166&43; [themes](http://themes.gohugo.io/)

Notes

* Archetype files now need to be complete, including `title` and `date`.
* The `-f` (format) flag in `hugo new` is removed: Now use the archetype files as is.

Enhancements

* Support extension-less media types. The motivation behind this change is to support Netlify&39;s `_redirects` files, so we can generate server-side redirects for the Hugo docs site. See [this commit](https://github.com/gohugoio/hugoDocs/commit/c1ab9894e8292e0a74c43bbca2263b1fb3840f9e) to see how we configured that. [0f40e1fa](https://github.com/gohugoio/hugo/commit/0f40e1fadfca2276f65adefa6d7d5d63aef9160a) [bep](https://github.com/bep) [#3614](https://github.com/gohugoio/hugo/issues/3614)
* Add `disableAliases` [516e6c6d](https://github.com/gohugoio/hugo/commit/516e6c6dc5733cdaf985317d58eedbc6ec0ef2f7) [bep](https://github.com/bep) [#3613](https://github.com/gohugoio/hugo/issues/3613)
* Support non-md files as archetype files [19f2e729](https://github.com/gohugoio/hugo/commit/19f2e729135af700c5d4aa06e7b3540e6d4847fd) [bep](https://github.com/bep) [#3597](https://github.com/gohugoio/hugo/issues/3597) [#3618](https://github.com/gohugoio/hugo/issues/3618)
* Identify extension-less text types as text [c43b512b](https://github.com/gohugoio/hugo/commit/c43b512b4700f76ac77f12d632bb030c3a241393) [bep](https://github.com/bep) [#3614](https://github.com/gohugoio/hugo/issues/3614)
* Add `.Site` to the archetype templates [662e12f3](https://github.com/gohugoio/hugo/commit/662e12f348a638a6fcc92a416ee7f7c2a7ef8792) [bep](https://github.com/bep) [#1629](https://github.com/gohugoio/hugo/issues/1629)
* Use archetype template as-is as a Go template [422057f6](https://github.com/gohugoio/hugo/commit/422057f60709696bbbd1c38c9ead2bf114d47e31) [bep](https://github.com/bep) [#452](https://github.com/gohugoio/hugo/issues/452) [#1629](https://github.com/gohugoio/hugo/issues/1629)
* Update links to new discuss URL [4aa12390](https://github.com/gohugoio/hugo/commit/4aa1239070bb9d4324d3582f3e809b702a59d3ac) [bep](https://github.com/bep)

Fixes

* Fix error handling for `JSON` front matter [fb53987a](https://github.com/gohugoio/hugo/commit/fb53987a4ff2acb9da8dec6ec7b11924d37352ce) [bep](https://github.com/bep) [#3610](https://github.com/gohugoio/hugo/issues/3610)
* Fix handling of quoted brackets in `JSON` front matter [3183b9a2](https://github.com/gohugoio/hugo/commit/3183b9a29d8adac962fbc73f79b04542f4c4c55d) [bep](https://github.com/bep) [#3511](https://github.com/gohugoio/hugo/issues/3511)



---
Automated with goreleaser
Built with go version go1.8.3 darwin/amd64

0.23

Hugo `0.23` is mainly a release that handles all the small changes needed to get Hugo moved to a GitHub organisation: [gohugoio](https://github.com/gohugoio), but it also contains a couple of important fixes that makes this an update worth-while for all.

Hugo now has:

* 17739&43; [stars](https://github.com/gohugoio/hugo/stargazers)
* 494&43; [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
* 165&43; [themes](http://themes.gohugo.io/)

Fixes

* Fix handling of duplicate footnotes [a9e551a1](https://github.com/gohugoio/hugo/commit/a9e551a100e60a603210ee083103dd73369d6a98) [bep](https://github.com/bep) [#1912](https://github.com/gohugoio/hugo/issues/1912)
* Add support for spaces in project folder for `GitInfo` 3533 3552

GitHub organisation related changes

* Update layout references to gohugoio/hugo [66d4850b](https://github.com/gohugoio/hugo/commit/66d4850b89db293dc58e828de784037f06c6c8dc) [bep](https://github.com/bep)
* Update content references to gohugoio/hugo [715ff1f8](https://github.com/gohugoio/hugo/commit/715ff1f87406edf27738c8c0f52fe185fa974ee8) [bep](https://github.com/bep)
* Add note on updates for rpm-based distros [52a0cea6](https://github.com/gohugoio/hugo/commit/52a0cea65de7b75ae1662abe3dec36fca3604617) [daftaupe](https://github.com/daftaupe)
* Update logo link in README [ccb8300d](https://github.com/gohugoio/hugo/commit/ccb8300d380636d75a39f4133284eb0109e836c3) [bep](https://github.com/bep)
* Remove docs building from CI builds [214dbdfb](https://github.com/gohugoio/hugo/commit/214dbdfb6f016d21415bc1ed511a37a084238878) [bep](https://github.com/bep)
* Adjust docs path [729be807](https://github.com/gohugoio/hugo/commit/729be8074bddb58c9111f32c55cc769e49cd0d5a) [bep](https://github.com/bep)
* Add docs as submodule [6cee0dfe](https://github.com/gohugoio/hugo/commit/6cee0dfe53899d433afc3c173a87d56265904cb0) [bep](https://github.com/bep)
* Update Gitter link in README [fbb25014](https://github.com/gohugoio/hugo/commit/fbb25014e1306ce7127d53e5fc4fc49867790336) [bep](https://github.com/bep)
* Change Windows build badge link, take 3 [86543d6a](https://github.com/gohugoio/hugo/commit/86543d6a50251b40540ebd0b851d45eb99d017c7) [bep](https://github.com/bep)
* Update Windows build link [e6ae32a0](https://github.com/gohugoio/hugo/commit/e6ae32a0ba75b9894418227e87391defbb1b3b49) [bep](https://github.com/bep)
* Update links in CONTRIBUTING.md due to the org transition [95386544](https://github.com/gohugoio/hugo/commit/95386544e858949a2baa414f395f30aaf66a6257) [digitalcraftsman](https://github.com/digitalcraftsman)
* Update source path in Dockerfile due to the org transition [7b99fb9f](https://github.com/gohugoio/hugo/commit/7b99fb9f1ca8381457afe9d8e953a388b8ada182) [digitalcraftsman](https://github.com/digitalcraftsman)
* Update clone folder in appveyor.yml due to the org transition [d531d17b](https://github.com/gohugoio/hugo/commit/d531d17b3be0b14faf4934611e01ac3289e37835) [digitalcraftsman](https://github.com/digitalcraftsman)
* Update import path in snapcraft.yaml due to the org transition [9266bf9d](https://github.com/gohugoio/hugo/commit/9266bf9d4c24592b875a7f6b92f761b4cea40879) [digitalcraftsman](https://github.com/digitalcraftsman)
* Run gofmt to get imports in line vs gohugoio/hugo [873a6f18](https://github.com/gohugoio/hugo/commit/873a6f18851bcda79d562ff6c02e1109e8e31a88) [bep](https://github.com/bep)
* Update Makefile vs gohugoio/hugo [f503d76a](https://github.com/gohugoio/hugo/commit/f503d76a3b2719bbb65ab9df5595d0dbc871fae9) [bep](https://github.com/bep)
* Update README to point to gohugoio/hugo [93643860](https://github.com/gohugoio/hugo/commit/93643860c9db10c6c32176b17cc83f1c317279bd) [bep](https://github.com/bep)
* Update examples to point to gohugoio/hugo [db46bcf8](https://github.com/gohugoio/hugo/commit/db46bcf82d060656d4bc731550e63ec9cf8576f2) [bep](https://github.com/bep)
* Update textual references in Go source to point to gohugoio/hugo [c17ad675](https://github.com/gohugoio/hugo/commit/c17ad675e8fcdb2db40fc50816b8f016bc14294c) [bep](https://github.com/bep)
* Update import paths to gohugoio/hugo [d8717cd4](https://github.com/gohugoio/hugo/commit/d8717cd4c74e80ea8e20adead9321412a2d76022) [bep](https://github.com/bep)












---
Automated with goreleaser
Built with go version go1.8.3 darwin/amd64

0.22.1

Hugo `0.22.1` fixes a couple of issues reported after the [0.22 release](https://github.com/spf13/hugo/releases/tag/v0.22) Monday. Most importantly a fix for detecting regular subfolders below the root-sections.

Also, we forgot to adapt the `permalink settings` with support for nested sections, which made that feature less useful than it could be.

With this release you can configure **permalinks with sections** like this:

**First level only:**

toml
[permalinks]
blog = ":section/:title"


**Nested (all levels):**

toml
[permalinks]
blog = ":sections/:title"

Fixes

* Fix section logic for root folders with subfolders [a30023f5](https://github.com/spf13/hugo/commit/a30023f5cbafd06034807255181a5b7b17f3c25f) [bep](https://github.com/bep) [#3586](https://github.com/spf13/hugo/issues/3586)
* Support sub-sections in permalink settings [1f26420d](https://github.com/spf13/hugo/commit/1f26420d392a5ab4c7b7fe1911c0268b45d01ab8) [bep](https://github.com/bep) [#3580](https://github.com/spf13/hugo/issues/3580)
* Adjust rlimit to 64000 [ff54b6bd](https://github.com/spf13/hugo/commit/ff54b6bddcefab45339d8dc2b13776b92bdc04b9) [bep](https://github.com/bep) [#3582](https://github.com/spf13/hugo/issues/3582)
* Make error on setting rlimit a warning only [629e1439](https://github.com/spf13/hugo/commit/629e1439e819a7118ae483381d4634f16d3474dd) [bep](https://github.com/bep) [#3582](https://github.com/spf13/hugo/issues/3582)
* Revert: Remove the rlimit tweaking on macOS [26aa06a3](https://github.com/spf13/hugo/commit/26aa06a3db57ab7134a900d641fa2976f7971520) [bep](https://github.com/bep) [#3582](https://github.com/spf13/hugo/issues/3582)








---
Automated with goreleaser
Built with go version go1.8.3 darwin/amd64

Page 39 of 44

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.