Made redundant footer code reference original footer partial

This commit is contained in:
Julian Stier 2020-03-12 15:45:10 +01:00
parent a850fc7201
commit 3520ff123d
3 changed files with 4 additions and 12 deletions

View File

@ -1,4 +1 @@
{{ if .Site.GoogleAnalytics }}
<!-- Google Analytics -->
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{ partial "footer.html" . }}

View File

@ -1,8 +1,6 @@
{{ partial "footer.html" . }}
{{ $include_toc := .Params.include_toc}}
{{ if .Site.GoogleAnalytics }}
<!-- Google Analytics -->
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{ partial "highlight-js.html" . }}
{{ with .Site.Params.toc }}
{{ if and (eq . "tocbot") (ne $include_toc false) }}

View File

@ -1,4 +1 @@
{{ if .Site.GoogleAnalytics }}
<!-- Google Analytics -->
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{ partial "footer.html" . }}