1
0
mirror of https://github.com/danbee/danbarber.me synced 2025-03-04 08:59:10 +00:00

Only render stats JS on production

This commit is contained in:
Daniel Barber 2018-08-11 21:29:19 -04:00
parent 799b370e39
commit 76c8c17526
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
3 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,7 @@ gem "jekyll"
group :jekyll_plugins do
gem "jekyll-archives"
gem "jekyll-assets"
gem "jekyll-environment-variables"
gem "jekyll-paginate"
gem "jekyll-picture-tag",
git: "https://github.com/danbee/jekyll-picture-tag.git",

View File

@ -56,6 +56,8 @@ GEM
pathutil (>= 0.8)
rack (~> 1.6)
sprockets (~> 3.3, < 3.8)
jekyll-environment-variables (1.0.0)
jekyll (~> 3.0)
jekyll-json-feed (1.0.0)
jekyll (~> 3.3)
jekyll-paginate (1.1.0)
@ -126,6 +128,7 @@ DEPENDENCIES
jekyll
jekyll-archives
jekyll-assets
jekyll-environment-variables
jekyll-json-feed
jekyll-paginate
jekyll-picture-tag!

View File

@ -28,4 +28,6 @@
}
</script>
{% include analytics.html %}
{% if site.env.CONTEXT == "production" %}
{% include analytics.html %}
{% endif %}