mirror of https://github.com/istio/istio.io.git
Update to Hugo 0.49 (#2746)
This commit is contained in:
parent
a2026aab5e
commit
f902b3132e
|
@ -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
|
||||
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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:
|
||||
|
|
|
@ -33,7 +33,7 @@ title: Istio
|
|||
"image": [
|
||||
"https://istio.io/img/logo.png"
|
||||
],
|
||||
“description”: “Istio 可以用于管理、保护、控制和观测服务。”
|
||||
"description": "Istio 可以用于管理、保护、控制和观测服务。"
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
command = "make netlify"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.48"
|
||||
HUGO_VERSION = "0.49"
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue