Merge pull request #40 from ntzwrk/feature/github-repo

Add feature for linking to a GitHub repository where the blog lives
This commit is contained in:
Alexis Tacnet
2017-06-11 21:57:30 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ linkedin = "john-example-aa80ue8è"
twitter = "example"
social_banner = "img/banner.png"
posts_navigation = true
# githubRepo = "githubUsername/repositoryName"
[params.colors]
identifier = "#527fc1f"

View File

@@ -1,5 +1,12 @@
<section class="footer">
<div class="container">
{{ 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>
</div>
{{ end }}
<div class="copyright">
{{ if .Site.Params.copyright }}