{% if page.layout == 'home' or page.layout == 'post' %}
{% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %}
{% endif %}
{% endif %}
{% if page.layout == 'home'
or page.layout == 'post'
or page.layout == 'categories' %}
{% assign type = page.layout %}
{% else %}
{% assign type = "page" %}
{% endif %}
{% assign js = type | prepend: '/assets/js/dist/' | append: '.min.js' %}
{% if page.math %}
{% endif %}
{% if jekyll.environment == 'production' %}
{% if site.google_analytics.id %}
{% include google-analytics.html %}
{% endif %}
{% endif %}