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:
parent
799b370e39
commit
76c8c17526
1
Gemfile
1
Gemfile
@ -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",
|
||||
|
||||
@ -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!
|
||||
|
||||
@ -28,4 +28,6 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
{% include analytics.html %}
|
||||
{% if site.env.CONTEXT == "production" %}
|
||||
{% include analytics.html %}
|
||||
{% endif %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user