From 1b790bdcdd6c46efda10899ead2dbc929acec931 Mon Sep 17 00:00:00 2001 From: Zach Corleissen Date: Fri, 11 Oct 2019 13:32:06 -0700 Subject: [PATCH] Revert "fix build bug" (#16836) This reverts commit aa68520ebcf71f674ed84975de529562ecbfec5f. --- Makefile | 2 +- layouts/shortcodes/code.html | 2 +- netlify.toml | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 4bb08c0c18635..8e27d0895634a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ DOCKER = docker -HUGO_VERSION = 0.58.3 +HUGO_VERSION = 0.53 DOCKER_IMAGE = kubernetes-hugo DOCKER_RUN = $(DOCKER) run --rm --interactive --tty --volume $(CURDIR):/src NODE_BIN = node_modules/.bin diff --git a/layouts/shortcodes/code.html b/layouts/shortcodes/code.html index 8275c99bc5afe..3b321f37af31e 100644 --- a/layouts/shortcodes/code.html +++ b/layouts/shortcodes/code.html @@ -3,7 +3,7 @@ {{ $codelang := .Get "language" | default (path.Ext $file | strings.TrimPrefix ".") }} {{ $fileDir := path.Split $file }} {{ $bundlePath := path.Join .Page.File.Dir $fileDir.Dir }} -{{ $filename := printf "/content/%s/%s/%s" .Page.Lang $p.File.Dir $file | safeURL }} +{{ $filename := path.Join $p.File.Dir $file }} {{ $ghlink := printf "https://%s/blob/master/content/%s/%s" site.Params.githubwebsiterepo .Page.Lang $filename | safeURL }} {{/* First assume this is a bundle and the file is inside it. */}} {{ $resource := $p.Resources.GetMatch (printf "%s*" $file ) }} diff --git a/netlify.toml b/netlify.toml index c5674eabd899c..b0fee252cae5a 100644 --- a/netlify.toml +++ b/netlify.toml @@ -7,10 +7,7 @@ functions = "functions" command = "make non-production-build" [build.environment] -# https://gitmemory.com/kubernetes/website -# https://www.gitmemory.com/zacharysarah -# https://github.com/kubernetes/website/pull/16151/files -HUGO_VERSION = "0.58.3" +HUGO_VERSION = "0.53" [context.production.environment] HUGO_BASEURL = "https://kubernetes.io/"