{% assign urls = site.data.assets[origin].jquery.js | append: ',' | append: site.data.assets[origin].bootstrap.js | append: ',' | append: site.data.assets[origin].search.js %} {% if page.layout == 'post' %} {% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %} {% assign urls = urls | append: ',' | append: site.data.assets[origin].countup.js %} {% endif %} {% endif %} {% if page.layout == 'post' or page.layout == 'page' or page.layout == 'home' %} {% assign urls = urls | append: ',' | append: site.data.assets[origin].lazysizes.js %} {% unless page.layout == 'home' %} {% assign urls = urls | append: ',' | append: site.data.assets[origin]['magnific-popup'].js | append: ',' | append: site.data.assets[origin].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 = site.lang | split: '-' | first %} {% assign urls = urls | append: ',' | append: site.data.assets[origin].dayjs.js.common | append: ',' | append: site.data.assets[origin].dayjs.js.locale | replace: ':LOCALE', locale | append: ',' | append: site.data.assets[origin].dayjs.js.relativeTime | append: ',' | append: site.data.assets[origin].dayjs.js.localizedFormat %} {% endif %} {% if page.content contains '