Release 0.48

This commit is contained in:
Bjørn Erik Pedersen 2018-08-29 09:26:03 +02:00
parent e375d0f05f
commit 2708dcd57b
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
6 changed files with 10 additions and 10 deletions

View File

@ -69,7 +69,7 @@ twitter = "GoHugoIO"
[params]
description = "The worlds 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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -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 }}
```

View File

@ -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"