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

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