Add feature for linking to a GitHub repository where the blog lives

This commit is contained in:
Valentin Sundermann
2017-06-10 13:38:00 +02:00
parent 103b92f658
commit 5cca23ef0f

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