mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-14 19:26:40 +02:00
Move copyright div out of conditional
This commit is contained in:
@@ -2,16 +2,14 @@
|
||||
<div class="container">
|
||||
|
||||
{{ if .Site.Params.githubRepo }}
|
||||
<div class="copyright">
|
||||
{{ $length := len ( split .Site.Params.githubRepo "/" ) }}
|
||||
{{ if eq $length 2 }}
|
||||
<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>
|
||||
{{ else }}
|
||||
<div class="copyright">
|
||||
<a href="https://github.com/{{ .Site.Params.githubRepo }}/content/{{ .File.Path }}" target="_blank">View this post on GitHub</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="copyright">
|
||||
|
Reference in New Issue
Block a user