diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e2afa93..3bc2059 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -70,13 +70,18 @@ {{ if site.Params.GitRepo }} + {{ if site.Params.GitBranch }} + {{ .Scratch.Set "GitBranch" site.Params.GitBranch }} + {{ else }} + {{ .Scratch.Set "GitBranch" "main" }} + {{ end }}