mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
Added analytics support
This commit is contained in:

committed by
Alexis Tacnet

parent
74bafff89d
commit
a8f15571da
@@ -9,6 +9,10 @@
|
|||||||
<script src="{{ .Site.BaseURL }}js/progressively.min.js" defer></script>
|
<script src="{{ .Site.BaseURL }}js/progressively.min.js" defer></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if isset .Site.Params "googleanalytics" }}
|
||||||
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
{{ if .Site.Params.highlightjs }}
|
{{ if .Site.Params.highlightjs }}
|
||||||
@@ -18,4 +22,4 @@
|
|||||||
progressively.init({delay: 30, throttle: 50});
|
progressively.init({delay: 30, throttle: 50});
|
||||||
{{ end }}
|
{{ end }}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user