From e8e23ed9a3405ff66c40ffc2e089ccdfc2f4a2cb Mon Sep 17 00:00:00 2001 From: Pablo Marcos <48572431+MarionMoseby@users.noreply.github.com> Date: Tue, 7 Sep 2021 20:28:31 +0200 Subject: [PATCH] Added new 'GitForge' param for non GitHub repos (#403) * Added new 'GitForge' param for non-git repos * Solved comments Co-authored-by: Pablo Marcos Co-authored-by: Emruz Hossain --- layouts/_default/single.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 26bef78..3bc2059 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -70,8 +70,19 @@ {{ if site.Params.GitRepo }} + {{ if site.Params.GitBranch }} + {{ .Scratch.Set "GitBranch" site.Params.GitBranch }} + {{ else }} + {{ .Scratch.Set "GitBranch" "main" }} + {{ end }}