mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
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:
@@ -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"
|
||||
|
@@ -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