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 }}