Skip to content

Commit

Permalink
Add feature #11 (variable display of the footer)
Browse files Browse the repository at this point in the history
If the footer is empty, it is now automatically disabled.
  • Loading branch information
dataCobra committed Aug 1, 2020
1 parent 5da471d commit d9052b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{{ if .Site.Copyright }}
<footer>
{{ with .Site.Copyright }} {{ . | markdownify }} {{ end }}

{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
</footer>
{{ else }}
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{ end }}

0 comments on commit d9052b6

Please sign in to comment.