parameterize git branch

This commit is contained in:
Nicholas Santiago 2021-01-20 11:55:39 -05:00
parent 4270ad6bbf
commit 5037c004e6
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -57,7 +57,7 @@
<!--- Improve this page button --->
{{ if site.Params.GitRepo }}
<div class="btn-improve-page">
<a href="{{ site.Params.GitRepo }}/edit/master/content/{{ .File.Path }}">
<a href="{{ site.Params.GitRepo }}/edit/{{ site.Params.GitBranch }}/content/{{ .File.Path }}">
<i class="fas fa-code-branch"></i>
{{ i18n "improve_this_page" }}
</a>