From 5037c004e6b34b5811aa917b240bb1a913c10d4e Mon Sep 17 00:00:00 2001 From: Nicholas Santiago Date: Wed, 20 Jan 2021 11:55:39 -0500 Subject: [PATCH] parameterize git branch --- exampleSite/config.yaml | 1 + layouts/_default/single.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 1d1fd7f..670c99c 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -69,6 +69,7 @@ params: # GitHub repo URL of your site gitRepo: https://github.com/hugo-toha/hugo-toha.github.io + gitBranch: main # specify whether you want to write some blog posts or not enableBlogPost: true diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a83c6b3..1751c09 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -57,7 +57,7 @@ {{ if site.Params.GitRepo }}
- + {{ i18n "improve_this_page" }}