diff options
-rw-r--r-- | layouts/partials/commento.html | 6 | ||||
-rw-r--r-- | layouts/partials/footer.html | 1 | ||||
-rw-r--r-- | layouts/partials/footer_mathjax.html | 2 | ||||
-rw-r--r-- | layouts/partials/goatcounter_analytics.html | 5 | ||||
-rw-r--r-- | layouts/post/single.html | 4 |
5 files changed, 16 insertions, 2 deletions
diff --git a/layouts/partials/commento.html b/layouts/partials/commento.html new file mode 100644 index 0000000..c3fad2d --- /dev/null +++ b/layouts/partials/commento.html @@ -0,0 +1,6 @@ +{{ with .Site.Params.commento }} +<div id="commento_thread"></div> +<script defer src="https://cdn.commento.io/js/commento.js"></script> +<div id="commento"></div> +<noscript>This site uses privacy-respecting comments integration provided by <a href="https://commento.io/">Commento</a>. Please enable Javascript to see comments.</noscript> +{{ end }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 42af21b..f0fed05 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,6 +3,7 @@ <script src="{{ .Site.BaseURL }}js/ui.js"></script> <script src="{{ .Site.BaseURL }}js/menus.js"></script> +{{ partial "goatcounter_analytics.html" . }} {{ partial "google_analytics.html" . }} {{ partial "piwik_analytics.html" . }} {{ partial "footer_mathjax" . }} diff --git a/layouts/partials/footer_mathjax.html b/layouts/partials/footer_mathjax.html index 2bacfd6..5319ec7 100644 --- a/layouts/partials/footer_mathjax.html +++ b/layouts/partials/footer_mathjax.html @@ -1,4 +1,4 @@ {{ if and (not .Params.disable_mathjax) (or (in (string .Content) "\\") (in (string .Content) "$")) }} <script src="{{ "/js/math-code.js" | relURL }}"></script> - <script async src="{{ .Site.Params.MathJaxCDN | default "//cdn.bootcss.com" }}/mathjax/{{ .Site.Params.MathJaxVersion | default "2.7.1" }}/MathJax.js?config=TeX-MML-AM_CHTML"></script> + <script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script> {{ end }}
\ No newline at end of file diff --git a/layouts/partials/goatcounter_analytics.html b/layouts/partials/goatcounter_analytics.html new file mode 100644 index 0000000..9810f2b --- /dev/null +++ b/layouts/partials/goatcounter_analytics.html @@ -0,0 +1,5 @@ +{{ with .Site.Params.goatcounterAnalytics }} +<!-- GoatCounter --> +<script data-goatcounter="https://{{ . }}.goatcounter.com/count" + async src="//gc.zgo.at/count.js"></script> +{{ end }} diff --git a/layouts/post/single.html b/layouts/post/single.html index 4bb45cf..5dc8ca4 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -13,7 +13,9 @@ {{ partial "share.html" . }} {{ partial "prev_next_post.html" . }} - + + {{ partial "commento.html" . }} + {{ partial "disqus.html" . }} </div> |