From 9054d6141981db82ca1e176c8aaf4e63ce25db57 Mon Sep 17 00:00:00 2001 From: Dani Comnea Date: Thu, 21 Feb 2019 01:00:48 +0000 Subject: [PATCH] Fix the codenew shortcode where site.Params.githubWebRow is null (#12743) --- layouts/shortcodes/code.html | 2 +- layouts/shortcodes/codenew.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/code.html b/layouts/shortcodes/code.html index d4137392f6..e99b852ad1 100644 --- a/layouts/shortcodes/code.html +++ b/layouts/shortcodes/code.html @@ -4,7 +4,7 @@ {{ $fileDir := path.Split $file }} {{ $bundlePath := path.Join .Page.Dir $fileDir.Dir }} {{ $filename := path.Join $p.Dir $file }} -{{ $ghlink := printf "https://%s/blob/master/content/%s/%s" site.Params.githubWebsiteRepo .Page.Lang $filename | safeURL }} +{{ $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 ) }} {{ with $resource }} diff --git a/layouts/shortcodes/codenew.html b/layouts/shortcodes/codenew.html index 95d24d69d9..76084c71c8 100644 --- a/layouts/shortcodes/codenew.html +++ b/layouts/shortcodes/codenew.html @@ -4,7 +4,7 @@ {{ $fileDir := path.Split $file }} {{ $bundlePath := path.Join .Page.Dir $fileDir.Dir }} {{ $filename := printf "/content/%s/examples/%s" .Page.Lang $file | safeURL }} -{{ $ghlink := printf "https://%s/master%s" site.Params.githubWebsiteRaw $filename | safeURL }} +{{ $ghlink := printf "https://%s/master%s" site.Params.githubwebsiteraw $filename | safeURL }} {{/* First assume this is a bundle and the file is inside it. */}} {{ $resource := $p.Resources.GetMatch (printf "%s*" $file ) }} {{ with $resource }}