diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-17 21:52:46 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-17 21:52:46 +0800 |
commit | 11e839decc5ee16f21b7527976c3029ee0cd5692 (patch) | |
tree | 00872cd25ed19bc392feb509b037cfdd78455d31 /layouts | |
parent | 8feb968a50affe0a8d49b2e7d047715d3bb5069f (diff) |
fix: compatibility in IE(9+) and Edge (#8)
- add classList shim for IE9
- refactor: for...of
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index eb26f82..6d02fac 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -67,7 +67,11 @@ {{- template "_internal/twitter_cards.html" . -}} <!-- Polyfill for old browsers --> +{{ `<!--[if lte IE 9]> + <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script> +<![endif]-->` | safeHTML }} + {{ `<!--[if lt IE 9]> - <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js" integrity="sha256-9uAoNWHdszsUDhSXf/rVcWOqKPfi5/8V5R4UdbZle2A=" crossorigin="anonymous"></script> - <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js" crossorigin="anonymous"></script> + <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script> + <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script> <![endif]-->` | safeHTML }} |