{% assign urls = site.data.origin[type].search.js %} {% if page.layout == 'post' or page.layout == 'page' or page.layout == 'home' %} {% assign urls = urls | append: ',' | append: site.data.origin[type]['lazy-polyfill'].js %} {% unless page.layout == 'home' %} {% assign urls = urls | append: ',' | append: site.data.origin[type].glightbox.js | append: ',' | append: site.data.origin[type].clipboard.js %} {% endunless %} {% endif %} {% if page.layout == 'home' or page.layout == 'post' or page.layout == 'archives' or page.layout == 'category' or page.layout == 'tag' %} {% assign locale = include.lang | split: '-' | first %} {% assign urls = urls | append: ',' | append: site.data.origin[type].dayjs.js.common | append: ',' | append: site.data.origin[type].dayjs.js.locale | replace: ':LOCALE', locale | append: ',' | append: site.data.origin[type].dayjs.js.relativeTime | append: ',' | append: site.data.origin[type].dayjs.js.localizedFormat %} {% endif %} {% if page.content contains ' {% if page.math %} {% endif %} {% if page.layout == 'post' %} {% assign provider = site.pageviews.provider %} {% if provider and provider != empty %} {% case provider %} {% when 'goatcounter' %} {% if site.analytics[provider].id != empty and site.analytics[provider].id %} {% include pageviews/{{ provider }}.html %} {% endif %} {% endcase %} {% endif %} {% endif %}