From ac3efe1825c2b83621c601256a32404bc51b6bd9 Mon Sep 17 00:00:00 2001 From: hugoreleaser Date: Mon, 22 Jan 2018 12:06:38 +0000 Subject: [PATCH 1/2] releaser: Bump versions for release of 0.34 [ci skip] --- config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 7533ab8dd..a983dd46d 100644 --- a/config.toml +++ b/config.toml @@ -71,7 +71,7 @@ twitter = "GoHugoIO" [params] description = "The world’s fastest framework for building websites" ## Used for views in rendered HTML (i.e., rather than using the .Hugo variable) - release = "0.34-DEV" + release = "0.34" ## Setting this to true will add a "noindex" to *EVERY* page on the site removefromexternalsearch = false ## Gh repo for site footer (include trailing slash) From 1e19604963a4b4137cd143dfc17d640dee99700b Mon Sep 17 00:00:00 2001 From: hugoreleaser Date: Mon, 22 Jan 2018 12:06:38 +0000 Subject: [PATCH 2/2] releaser: Add release notes to /docs for release of 0.34 [ci skip] --- content/news/0.34-relnotes-ready.md | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 content/news/0.34-relnotes-ready.md diff --git a/content/news/0.34-relnotes-ready.md b/content/news/0.34-relnotes-ready.md new file mode 100644 index 000000000..8a76dab29 --- /dev/null +++ b/content/news/0.34-relnotes-ready.md @@ -0,0 +1,51 @@ + +--- +date: 2018-01-22 +title: "0.34" +description: "0.34" +slug: "0.34" +categories: ["Releases"] +--- + + +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) + + + + +