diff options
author | Dillon <dillonzq@outlook.com> | 2020-04-30 18:21:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 18:21:52 +0300 |
commit | 3040ffa107eccd45416a5b9c5f3b85fdd50d94d8 (patch) | |
tree | d2ce33130c7929cd1a0a571f09f16a8cd35b8a96 /layouts | |
parent | 3096ff623597d3af9a9c65525405b858ad547e7a (diff) |
feat: improve browser compatibility for TypeIt and object-fit (#293)
* object-fit polyfill
* TypeIt 7.0.3 -> 6.5.1
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/assets.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index 8dae4a9..80b834f 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -38,6 +38,10 @@ {{- $source := $cdn.lazysizesJS | default "lib/lazysizes/lazysizes.min.js" -}} {{- dict "source" $source "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}} +{{- /* object-fit-images */ -}} +{{- $source := $cdn.objectFitImagesJS | default "lib/object-fit-images/ofi.min.js" -}} +{{- dict "source" $source "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}} + {{- /* twemoji */ -}} {{- if $params.twemoji -}} {{- $source := $cdn.twemojiJS | default "lib/twemoji/twemoji.min.js" -}} |