mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
Release 0.48
This commit is contained in:
6 files changed
+10
-10
No files matched your search
+1
-1
@@ -69,7 +69,7 @@ twitter = "GoHugoIO"
|
|||||||
[params]
|
[params]
|
||||||
description = "The world’s fastest framework for building websites"
|
description = "The world’s fastest framework for building websites"
|
||||||
## Used for views in rendered HTML (i.e., rather than using the .Hugo variable)
|
## 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
|
## Setting this to true will add a "noindex" to *EVERY* page on the site
|
||||||
removefromexternalsearch = false
|
removefromexternalsearch = false
|
||||||
## Gh repo for site footer (include trailing slash)
|
## Gh repo for site footer (include trailing slash)
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 93 KiB |
@@ -1,17 +1,17 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
date: 2018-08-29
|
date: 2018-08-29
|
||||||
title: "0.48"
|
title: "This One Goes to 11!"
|
||||||
description: "0.48"
|
description: "With Go 1.11, Hugo finally gets support for variable overwrites in templates!"
|
||||||
categories: ["Releases"]
|
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" }}
|
{{ $var := "Hugo Page" }}
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
{{ $var = "Hugo Home" }}
|
{{ $var = "Hugo Home" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
Var is {{ $var }}
|
Var is {{ $var }}
|
||||||
```
|
```
|
||||||
|
|||||||
+4
-4
@@ -3,7 +3,7 @@ publish = "public"
|
|||||||
command = "hugo --minify"
|
command = "hugo --minify"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_VERSION = "0.47.1"
|
HUGO_VERSION = "0.48"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
||||||
@@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true"
|
|||||||
command = "hugo --enableGitInfo"
|
command = "hugo --enableGitInfo"
|
||||||
|
|
||||||
[context.split1.environment]
|
[context.split1.environment]
|
||||||
HUGO_VERSION = "0.47.1"
|
HUGO_VERSION = "0.48"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
command = "hugo --buildFuture -b $DEPLOY_PRIME_URL"
|
command = "hugo --buildFuture -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.deploy-preview.environment]
|
[context.deploy-preview.environment]
|
||||||
HUGO_VERSION = "0.47.1"
|
HUGO_VERSION = "0.48"
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "hugo -b $DEPLOY_PRIME_URL"
|
command = "hugo -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.branch-deploy.environment]
|
[context.branch-deploy.environment]
|
||||||
HUGO_VERSION = "0.47.1"
|
HUGO_VERSION = "0.48"
|
||||||
|
|
||||||
[context.next.environment]
|
[context.next.environment]
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|||||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Reference in new issue
Block a user