Skip to content

Commit

Permalink
Update hugo to 0.20 (#2392)
Browse files Browse the repository at this point in the history
* Update netlify.toml

* Update netlify-production.sh

* Update netlify.sh

* Update CONTRIBUTING.md

* Update hugoserver.sh

* Update hugoserver.ps1
  • Loading branch information
mattstratton authored May 9, 2017
1 parent 6b58f37 commit 3f0cdb4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If you'd like to edit a specific devopsdays event site (and/or contribute code),

### Quick Overview

1. Install [Hugo v0.19+](http://gohugo.io).
1. Install [Hugo v0.20+](http://gohugo.io).
1. Fork this repo.

### View site locally
Expand Down
2 changes: 1 addition & 1 deletion bin/netlify-production.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
hugo_0.19 --theme=devopsdays-theme --buildDrafts=false --baseURL="https://www.devopsdays.org"
hugo --theme=devopsdays-theme --buildDrafts=false --baseURL="https://www.devopsdays.org"
gulp
2 changes: 1 addition & 1 deletion bin/netlify.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hugo_0.19 --theme=devopsdays-theme --buildDrafts=false --baseURL="/"
hugo --theme=devopsdays-theme --buildDrafts=false --baseURL="/"
2 changes: 1 addition & 1 deletion hugoserver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ $MyPath = $PSScriptRoot

docker stop hugo-server
docker rm hugo-server
docker run -p 1313:1313 -v ${MyPath}:/site --name hugo-server devopsdays/docker-hugo-server:v0.19
docker run -p 1313:1313 -v ${MyPath}:/site --name hugo-server devopsdays/docker-hugo-server:v0.20
2 changes: 1 addition & 1 deletion hugoserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

docker stop hugo-server
docker rm hugo-server
docker run -tp 1313:1313 -v $(pwd):/site -e VIRTUAL_HOST="${1}" --name hugo-server devopsdays/docker-hugo-server:v0.19
docker run -tp 1313:1313 -v $(pwd):/site -e VIRTUAL_HOST="${1}" --name hugo-server devopsdays/docker-hugo-server:v0.20
5 changes: 5 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
#publish = "public/"
command = "bin/netlify-production.sh"
publish = "dist/"

[context.production.environment]
HUGO_VERSION = "0.20"

# Deploy Preview context: All Deploy Previews
# will inherit these settings.
[context.deploy-preview]
publish = "public/"
command = "bin/netlify.sh"
[context.deploy-preview.environment]
HUGO_VERSION = "0.20"

[context.test]
command = "bin/netlify-production.sh"
Expand Down

0 comments on commit 3f0cdb4

Please sign in to comment.