Update to Hugo 0.49 (#2746)

This commit is contained in:
Martin Taillefer 2018-10-05 23:35:11 -07:00 committed by GitHub
parent a2026aab5e
commit f902b3132e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 9 deletions

View File

@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: gcr.io/istio-testing/website-builder:2018-09-15
- image: gcr.io/istio-testing/website-builder:2018-10-05
working_directory: ~/site

View File

@ -1,9 +1,9 @@
img := gcr.io/istio-testing/website-builder:2018-09-15
img := gcr.io/istio-testing/website-builder:2018-10-05
docker := docker run -t -i --sig-proxy=true --rm -v $(shell pwd):/site -w /site $(img)
ifeq ($(CONTEXT),production)
baseurl := $(URL)
baseurl := "$(URL)"
endif
build:

View File

@ -33,7 +33,7 @@ title: Istio
"image": [
"https://istio.io/img/logo.png"
],
“description”: “Istio 可以用于管理、保护、控制和观测服务。”
"description": "Istio 可以用于管理、保护、控制和观测服务。"
}
</script>
<script>

View File

@ -3,4 +3,4 @@
command = "make netlify"
[build.environment]
HUGO_VERSION = "0.48"
HUGO_VERSION = "0.49"

View File

@ -16,7 +16,7 @@ RUN apk add --no-cache \
git \
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --allow-untrusted gnu-libiconv
ENV HUGO_VERSION=0.48
ENV HUGO_VERSION=0.49
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz /tmp
RUN tar -xf /tmp/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -C /tmp \
&& mkdir -p /usr/local/sbin \

View File

@ -3,8 +3,9 @@ set -e
hugo version
if [ "$2" == "-no_minify" ]; then
hugo --baseURL "$1"
if [ "$2" == "-no_minify" ]
then
hugo --baseURL "$1"
else
hugo --minify --baseURL "$1"
hugo --minify --baseURL "$1"
fi