Sha256: abca8aec05e8621db84fdf1f19d87c7d65d3627ac2badc7242df0ea91c02a5a0
Contents?: true
Size: 745 Bytes
Versions: 1
Compression:
Stored size: 745 Bytes
Contents
{% assign urls = include.urls | split: ',' %} {% assign combined_urls = null %} {% assign domain = 'https://cdn.jsdelivr.net/' %} {% for url in urls %} {% if url contains domain %} {% assign url_snippet = url | slice: domain.size, url.size %} {% if combined_urls %} {% assign combined_urls = combined_urls | append: ',' | append: url_snippet %} {% else %} {% assign combined_urls = domain | append: 'combine/' | append: url_snippet %} {% endif %} {% elsif url contains '//' %} <script defer src="{{ url }}"></script> {% else %} <script defer src="{{ url | relative_url }}"></script> {% endif %} {% endfor %} {% if combined_urls %} <script defer src="{{ combined_urls }}"></script> {% endif %}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-theme-chirpy-7.2.0 | _includes/jsdelivr-combine.html |