diff --git a/www/plugins/jasonwilliams/calgaryconditions/lang/en-ca/lang.php b/www/plugins/jasonwilliams/calgaryconditions/lang/en/lang.php similarity index 100% rename from www/plugins/jasonwilliams/calgaryconditions/lang/en-ca/lang.php rename to www/plugins/jasonwilliams/calgaryconditions/lang/en/lang.php diff --git a/www/plugins/jasonwilliams/feed/lang/en-ca/lang.php b/www/plugins/jasonwilliams/feed/lang/en/lang.php similarity index 100% rename from www/plugins/jasonwilliams/feed/lang/en-ca/lang.php rename to www/plugins/jasonwilliams/feed/lang/en/lang.php diff --git a/www/themes/jason-williamsca/assets/javascript/common.js b/www/themes/jason-williamsca/assets/javascript/common.js index c3f46ea..1dd4d4c 100644 --- a/www/themes/jason-williamsca/assets/javascript/common.js +++ b/www/themes/jason-williamsca/assets/javascript/common.js @@ -14,4 +14,13 @@ $(() => { $('textarea').each(function() { $(this).height($(this)[0].scrollHeight) }) + + // Use google analytics in production + if (!window.location.hostname.includes('dev')) { + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + + gtag('config', 'UA-167178542-1'); + } }); \ No newline at end of file diff --git a/www/themes/jason-williamsca/layouts/default.htm b/www/themes/jason-williamsca/layouts/default.htm index ecc9cf6..97da93a 100644 --- a/www/themes/jason-williamsca/layouts/default.htm +++ b/www/themes/jason-williamsca/layouts/default.htm @@ -51,14 +51,15 @@ description = "Default Layout"

Made with in #YYC

-

Recent Projects

+
-

Recent Blog Posts

+
+ {% if 'dev' not in url('/') %}{% endif %} diff --git a/www/themes/jason-williamsca/pages/maintenance.htm b/www/themes/jason-williamsca/pages/maintenance.htm index 6b4d0f3..2f5fc62 100644 --- a/www/themes/jason-williamsca/pages/maintenance.htm +++ b/www/themes/jason-williamsca/pages/maintenance.htm @@ -6,24 +6,23 @@ is_hidden = 0 -son-williams.ca +ja.son-williams.ca
-

ja.son-williams.ca

+

ja.son-williams.ca

+

Under maintenance. Please check back later.

-
\ No newline at end of file