From cfc99631a9604a55d22c50d16bb969747ce87e07 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sat, 1 Feb 2020 08:11:54 -0500 Subject: [PATCH] simple analytics pixel on AMP pages --- README.md | 1 + content/humans.txt | 1 + layouts/_default/single.amp.html | 3 +++ layouts/partials/head/preload.html | 1 + layouts/partials/scripts/simple_analytics.html | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a70e23e2..38026b62 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Personal website of [@jakejarvis](https://github.com/jakejarvis), created and de - [Hugo extended](https://github.com/gohugoio/hugo) - [Netlify](https://www.netlify.com/) - [Commento](https://gitlab.com/commento/commento) +- [Simple Analytics](https://simpleanalytics.com/) ([referral link](https://referral.simpleanalytics.com/jake-jarvis)) - [...and much more.](https://jarv.is/uses/) I keep an ongoing list of [blog post ideas](https://github.com/jakejarvis/jarv.is/issues/1) and [coding to-dos](https://github.com/jakejarvis/jarv.is/issues/11) as issues in this repo. diff --git a/content/humans.txt b/content/humans.txt index 9cb8ac1f..e0250a82 100644 --- a/content/humans.txt +++ b/content/humans.txt @@ -32,6 +32,7 @@ Hugo extended Netlify Commento + Simple Analytics ...and much more: https://jarv.is/uses/ # VIEW SOURCE diff --git a/layouts/_default/single.amp.html b/layouts/_default/single.amp.html index a6dba9fb..09728498 100644 --- a/layouts/_default/single.amp.html +++ b/layouts/_default/single.amp.html @@ -256,6 +256,9 @@
Content by {{ .Site.Author.name }}, licensed under CC-BY-4.0.
↑ Back to top.
+ + + diff --git a/layouts/partials/head/preload.html b/layouts/partials/head/preload.html index af30c306..70b005f0 100644 --- a/layouts/partials/head/preload.html +++ b/layouts/partials/head/preload.html @@ -1,3 +1,4 @@ + diff --git a/layouts/partials/scripts/simple_analytics.html b/layouts/partials/scripts/simple_analytics.html index 231b312c..a3e19c78 100644 --- a/layouts/partials/scripts/simple_analytics.html +++ b/layouts/partials/scripts/simple_analytics.html @@ -1,4 +1,4 @@ {{ if eq hugo.Environment "production" }} - + {{ end }}