mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36: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>
|
||||
{{ end }}
|
||||
|
||||
{{ if isset .Site.Params "googleanalytics" }}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ end }}
|
||||
|
||||
<script>
|
||||
window.onload = function() {
|
||||
{{ if .Site.Params.highlightjs }}
|
||||
@@ -18,4 +22,4 @@
|
||||
progressively.init({delay: 30, throttle: 50});
|
||||
{{ end }}
|
||||
};
|
||||
</script>
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user