mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
Add feature for linking to a GitHub repository where the blog lives
This commit is contained in:
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user