parameterize git branch
This commit is contained in:
parent
4270ad6bbf
commit
5037c004e6
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue