Allow githubRepo to point to custom branches.

This commit is contained in:
tobiasraabe
2018-03-03 12:44:52 +01:00
committed by Michael Noronha
parent a36d787cf1
commit b4cfd8b01e
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ social_banner = "img/banner.png"
usesmallsummarycard = true
posts_navigation = true
# issoHost = "comments.domain.tld:1234"
# githubRepo = "githubUsername/repositoryName"
# githubRepo = "githubUsername/repositoryName/tree/master"
small_banner_logo = false
[params.colors]

View File

@@ -3,7 +3,7 @@
{{ if .Site.Params.githubRepo }}
<div class="copyright">
<a href="https://github.com/{{ .Site.Params.githubRepo }}/tree/master/content/{{ .File.Path }}" target="_blank">View this post on GitHub</a>
<a href="https://github.com/{{ .Site.Params.githubRepo }}/content/{{ .File.Path }}" target="_blank">View this post on GitHub</a>
</div>
{{ end }}