diff --git a/config.toml b/config.toml index 7e750aaab..8a0634467 100644 --- a/config.toml +++ b/config.toml @@ -69,7 +69,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.49-DEV" + release = "0.48" ## Setting this to true will add a "noindex" to *EVERY* page on the site removefromexternalsearch = false ## Gh repo for site footer (include trailing slash) diff --git a/content/en/news/0.48-relnotes/featured-hugo-48-poster.png b/content/en/news/0.48-relnotes/featured-hugo-48-poster.png new file mode 100644 index 000000000..7adb0d22e Binary files /dev/null and b/content/en/news/0.48-relnotes/featured-hugo-48-poster.png differ diff --git a/content/en/news/0.48-relnotes/index.md b/content/en/news/0.48-relnotes/index.md index e5dbb67d0..92c765f23 100644 --- a/content/en/news/0.48-relnotes/index.md +++ b/content/en/news/0.48-relnotes/index.md @@ -1,17 +1,17 @@ --- date: 2018-08-29 -title: "0.48" -description: "0.48" +title: "This One Goes to 11!" +description: "With Go 1.11, Hugo finally gets support for variable overwrites in templates!" categories: ["Releases"] --- - Hugo `0.48` is built with the brand new Go 1.11. On the technical side this means that Hugo now uses [Go Modules](https://github.com/golang/go/wiki/Modules) for the build. The big new functional thing in Go 1.11 for Hugo is added support for [variable overwrites](https://github.com/golang/go/issues/10608). This means that you can now do: +Hugo `0.48` is built with the brand new Go 1.11. On the technical side this means that Hugo now uses [Go Modules](https://github.com/golang/go/wiki/Modules) for the build. The big new functional thing in Go 1.11 for Hugo is added support for [variable overwrites](https://github.com/golang/go/issues/10608). This means that you can now do this and get the expected result: -``` +```go-html-template {{ $var := "Hugo Page" }} {{ if .IsHome }} -{{ $var = "Hugo Home" }} + {{ $var = "Hugo Home" }} {{ end }} Var is {{ $var }} ``` diff --git a/netlify.toml b/netlify.toml index 5e80c5b72..8033bcd56 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "hugo --minify" [context.production.environment] -HUGO_VERSION = "0.47.1" +HUGO_VERSION = "0.48" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" @@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true" command = "hugo --enableGitInfo" [context.split1.environment] -HUGO_VERSION = "0.47.1" +HUGO_VERSION = "0.48" HUGO_ENV = "production" [context.deploy-preview] command = "hugo --buildFuture -b $DEPLOY_PRIME_URL" [context.deploy-preview.environment] -HUGO_VERSION = "0.47.1" +HUGO_VERSION = "0.48" [context.branch-deploy] command = "hugo -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] -HUGO_VERSION = "0.47.1" +HUGO_VERSION = "0.48" [context.next.environment] HUGO_ENABLEGITINFO = "true" diff --git a/resources/_gen/images/news/0.48-relnotes/featured-hugo-48-poster_hub95348423e80ff144dfee01d64fb9889_95358_480x0_resize_catmullrom_2.png b/resources/_gen/images/news/0.48-relnotes/featured-hugo-48-poster_hub95348423e80ff144dfee01d64fb9889_95358_480x0_resize_catmullrom_2.png new file mode 100644 index 000000000..af1b061f6 Binary files /dev/null and b/resources/_gen/images/news/0.48-relnotes/featured-hugo-48-poster_hub95348423e80ff144dfee01d64fb9889_95358_480x0_resize_catmullrom_2.png differ diff --git a/resources/_gen/images/news/0.48-relnotes/featured-hugo-48-poster_hub95348423e80ff144dfee01d64fb9889_95358_640x0_resize_catmullrom_2.png b/resources/_gen/images/news/0.48-relnotes/featured-hugo-48-poster_hub95348423e80ff144dfee01d64fb9889_95358_640x0_resize_catmullrom_2.png new file mode 100644 index 000000000..7ae07ef02 Binary files /dev/null and b/resources/_gen/images/news/0.48-relnotes/featured-hugo-48-poster_hub95348423e80ff144dfee01d64fb9889_95358_640x0_resize_catmullrom_2.png differ