diff --git a/docs/_config.yml b/docs/_config.yml index eff1576..79ca939 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -56,7 +56,6 @@ sass: plugins: - jekyll-sitemap - - jekyll-seo-tag google_analytics: G-XYF4CL5HT2 paginate: 7 diff --git a/docs/_includes/analytics.html b/docs/_includes/analytics.html new file mode 100644 index 0000000..23e287e --- /dev/null +++ b/docs/_includes/analytics.html @@ -0,0 +1,8 @@ + + \ No newline at end of file diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 5705497..34e3550 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -68,6 +68,12 @@ {{ site.data.settings.advanced_settings.header_js }} {% endif %} + + + {% if site.google_analytics and jekyll.environment != 'dev' %} + {% include analytics.html %} + {% endif %} + diff --git a/readme.md b/readme.md index 24b1876..940bce0 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,3 @@ # How to build website - Navigate to `/docs` -- exec `bundle exec jekyll serve` \ No newline at end of file +- exec `JEKYLL_ENV=dev bundle exec jekyll serve` \ No newline at end of file