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