Skip to content

Commit

Permalink
Replace polyfill.io
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Mar 1, 2024
1 parent dcc8e2e commit 8613c67
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Other
promising support for versions supported by the Python core team,
Ubuntu LTS, or Debian stable, and taking into consideration
Debian oldstable and PyPy.
* Replace `polyfill.io` with `cdnjs.cloudflare.com/polyfill`.

New in v8.3.0
=============
Expand Down
4 changes: 2 additions & 2 deletions docs/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ For Mako:
% if date_fanciness != 0:
%if date_fanciness == 2:
<!-- Polyfill for relative dates in Safari -- best handled with a CDN -->
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
<script src="https://cdnjs.cloudflare.com/polyfillflare.com/polyfill/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
%endif
<!-- required scripts -- best handled with bundles -->
<script src="/assets/js/luxon.min.js"></script>
Expand All @@ -1714,7 +1714,7 @@ For Jinja2:
{% if date_fanciness != 0 %}
{% if date_fanciness == 2 %}
<!-- Polyfill for relative dates in Safari -- best handled with a CDN -->
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
{% endif %}
<!-- required scripts -- best handled with bundles -->
<script src="/assets/js/luxon.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base-jinja/templates/base_helper.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ lang="{{ lang }}">
{% endif %}
{% if date_fanciness != 0 %}
{% if date_fanciness == 2 %}
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
{% endif %}
{% if use_cdn %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base/templates/base_helper.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ lang="${lang}">
% endif
% if date_fanciness != 0:
% if date_fanciness == 2:
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
% endif
% if use_cdn:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ lang="{{ lang }}">
{% endif %}
{% if date_fanciness != 0 %}
{% if date_fanciness == 2 %}
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
{% endif %}
{% if use_cdn %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/bootblog4/templates/base_helper.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ lang="${lang}">
%endif
%if date_fanciness != 0:
%if date_fanciness == 2:
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
%endif
%if use_cdn:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ lang="{{ lang }}">
{% endif %}
{% if date_fanciness != 0 %}
{% if date_fanciness == 2 %}
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
{% endif %}
{% if use_cdn %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/bootstrap4/templates/base_helper.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ lang="${lang}">
%endif
%if date_fanciness != 0:
%if date_fanciness == 2:
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
%endif
%if use_cdn:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
Expand Down

0 comments on commit 8613c67

Please sign in to comment.