diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-01-22 12:58:55 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-01-22 13:02:01 +0100 |
commit | 5903a9ce106ca80d26ed5e6ae257c05fe4e1950d (patch) | |
tree | e8410960344b1413255ad1f18303f77b395ce717 /temp | |
parent | 4d644c9d6856dd4367cdeda051df041172d1bcde (diff) | |
download | hugo-5903a9ce106ca80d26ed5e6ae257c05fe4e1950d.tar.gz hugo-5903a9ce106ca80d26ed5e6ae257c05fe4e1950d.zip |
Release 0.34
Diffstat (limited to 'temp')
-rw-r--r-- | temp/0.34-relnotes-ready.md | 42 | ||||
-rw-r--r-- | temp/0.34-relnotes.md | 38 |
2 files changed, 42 insertions, 38 deletions
diff --git a/temp/0.34-relnotes-ready.md b/temp/0.34-relnotes-ready.md new file mode 100644 index 000000000..712f3f3c5 --- /dev/null +++ b/temp/0.34-relnotes-ready.md @@ -0,0 +1,42 @@ + +Hugo `0.33` is a small release. It contains a few smaller bug-fixes, but more important is an overhaul of the API used to find your images and other resources in your page bundles. + +We have added two simple methods on the `Resources` object: + +* `.Match` finds every resource matching a pattern. Examples: `.Match "images/*.jpg"` finds every JPEG image in `images` and `.Match "**.jpg"` finds every JPEG image in the bundle. +* `.GetMatch` finds the first resource matching the pattern given. + +**Note: The path separators used are Unix-style forward slashes, even on Windows.** + +It uses [standard wildcard syntax](http://tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm) with the addition of the `**`, aka super-asterisk, which matches across path boundaries. + +Thanks to [@gobwas](https://github.com/gobwas/glob) for a fast and easy-to-use Glob library. + +This release represents **5 contributions by 1 contributors** to the main Hugo code base. + +Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs), +which has received **25 contributions by 16 contributors**. A special thanks to [@bep](https://github.com/bep), [@rmetzler](https://github.com/rmetzler), [@chris-rudmin](https://github.com/chris-rudmin), and [@stkevintan](https://github.com/stkevintan) for their work on the documentation site. + + +Hugo now has: + +* 22689+ [stars](https://github.com/gohugoio/hugo/stargazers) +* 448+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors) +* 197+ [themes](http://themes.gohugo.io/) + +## Notes +* `Resources.GetByPrefix` and `Resources.ByPrefix` are depracated. They still work, but will eventually be removed. Use `Resources.Match` (many) and `Resources.GetMatch` (one). +* When filtering bundles pages in sub-folders, you need to include the sub-folder when matching. This was a bug introduced in `0.32` and gets it in line with images and other resources. + +## Enhancements + +* Add `Resources.Match` and `Resources.GetMatch` [94213801](https://github.com/gohugoio/hugo/commit/9421380168f66620cb73203e1267814b3086d805) [@bep](https://github.com/bep) [#4301](https://github.com/gohugoio/hugo/issues/4301) + +## Fixes +* Add validation for `defaultContentLanguage` [4d5e4f37](https://github.com/gohugoio/hugo/commit/4d5e4f379a890a3c6cbc11ddb40d77a90f14c015) [@bep](https://github.com/bep) [#4298](https://github.com/gohugoio/hugo/issues/4298) +* Fix lookup of pages bundled in sub-folders in `ByPrefix` etc. [5d030869](https://github.com/gohugoio/hugo/commit/5d03086981b4a7d4bc450269a6a2e0fd22dbeed7) [@bep](https://github.com/bep) [#4295](https://github.com/gohugoio/hugo/issues/4295) + + + + + diff --git a/temp/0.34-relnotes.md b/temp/0.34-relnotes.md deleted file mode 100644 index 481d56862..000000000 --- a/temp/0.34-relnotes.md +++ /dev/null @@ -1,38 +0,0 @@ - -This release represents **5 contributions by 1 contributors** to the main Hugo code base. - -Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs), -which has received **25 contributions by 16 contributors**. A special thanks to [@bep](https://github.com/bep), [@rmetzler](https://github.com/rmetzler), [@chris-rudmin](https://github.com/chris-rudmin), and [@stkevintan](https://github.com/stkevintan) for their work on the documentation site. - - -Hugo now has: - -* 22689+ [stars](https://github.com/gohugoio/hugo/stargazers) -* 448+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors) -* 197+ [themes](http://themes.gohugo.io/) - -## Enhancements - -### Templates - -* Add some more layout docshelper variants [07700aab](https://github.com/gohugoio/hugo/commit/07700aab0d816b8af1d49465fe3a76331ccb6b77) [@bep](https://github.com/bep) - -### Core - -* Add validation for defaultContentLanguage [4d5e4f37](https://github.com/gohugoio/hugo/commit/4d5e4f379a890a3c6cbc11ddb40d77a90f14c015) [@bep](https://github.com/bep) [#4298](https://github.com/gohugoio/hugo/issues/4298) - -### Other - -* Avoid some strings.ToLower in globbing [34a216fe](https://github.com/gohugoio/hugo/commit/34a216fe6778815dd76be628b9148e85c2af07fe) [@bep](https://github.com/bep) [#4301](https://github.com/gohugoio/hugo/issues/4301) -* Add Match and GetMatch [94213801](https://github.com/gohugoio/hugo/commit/9421380168f66620cb73203e1267814b3086d805) [@bep](https://github.com/bep) [#4301](https://github.com/gohugoio/hugo/issues/4301) - -## Fixes - -### Core - -* Fix handling of pages bundled in sub-folders in ByPrefix etc. [5d030869](https://github.com/gohugoio/hugo/commit/5d03086981b4a7d4bc450269a6a2e0fd22dbeed7) [@bep](https://github.com/bep) [#4295](https://github.com/gohugoio/hugo/issues/4295) - - - - - |