From 17c4462464c6674bb5397065e23a9a90806fa3f6 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Tue, 30 May 2017 02:48:30 -0400 Subject: [PATCH] Add analytics to site templates --- _includes/analytics-noscript.html | 3 ++ _includes/analytics-script.html | 12 ++++++ _layouts/default.html | 61 +++++++++++++++++-------------- _layouts/post.html | 59 ++++++++++++++++-------------- 4 files changed, 80 insertions(+), 55 deletions(-) create mode 100644 _includes/analytics-noscript.html create mode 100644 _includes/analytics-script.html diff --git a/_includes/analytics-noscript.html b/_includes/analytics-noscript.html new file mode 100644 index 0000000..333c3bf --- /dev/null +++ b/_includes/analytics-noscript.html @@ -0,0 +1,3 @@ + diff --git a/_includes/analytics-script.html b/_includes/analytics-script.html new file mode 100644 index 0000000..020d20d --- /dev/null +++ b/_includes/analytics-script.html @@ -0,0 +1,12 @@ + diff --git a/_layouts/default.html b/_layouts/default.html index 5c82ad8..3d17b56 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,41 +1,46 @@ - - {% include base.html %} - - {% if page.title %}{% t page.title %} — {% endif %}Dash - + + {% include base.html %} + + {% if page.title %}{% t page.title %} — {% endif %}Dash + - + - + - - + + - - + + + {% include analytics-script.html %} + - + - {{ content }} + {{ content }} - - + + - -
- {% include nav-mobile.html %} -
+ +
+ {% include nav-mobile.html %} +
- - - - - - {% include globals_js_data.html %} + + {% include analytics-noscript.html %} - + + + + + + {% include globals_js_data.html %} + + diff --git a/_layouts/post.html b/_layouts/post.html index 8060e6f..4162ab5 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,22 +1,24 @@ - - {% include base.html %} - - {% if page.title %}{{ page.title }} — {% endif %}Dash - + + {% include base.html %} + + {% if page.title %}{{ page.title }} — {% endif %}Dash + - + - + - - + + - - + + + {% include analytics-script.html %} + - + {% include hero/post.html %} @@ -59,23 +61,26 @@ - - + + - -
- - {% include nav-mobile.html %} -
+ +
+ + {% include nav-mobile.html %} +
- - - - - + + {% include analytics-noscript.html %} + + + + + + {% include globals_js_data.html %} - +