blessing-skin-server/resources/views/shared/head.twig

28 lines
1.1 KiB
Twig
Raw Normal View History

2019-09-17 23:10:44 +08:00
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="theme-color" content="{{ theme_color }}">
<meta name="keywords" content="{{ seo.keywords }}">
<meta name="description" content="{{ seo.description }}">
{{ seo.extra|striptags('<meta>')|raw }}
2020-05-21 10:52:14 +08:00
<link rel="preconnect" href="https://cdn.jsdelivr.net/" crossorigin>
2020-05-21 11:22:56 +08:00
{% if custom_cdn_host %}
<link rel="preconnect" href="{{ custom_cdn_host }}" crossorigin>
{% endif %}
2020-05-19 17:02:54 +08:00
<script>
window.addEventListener('load', () => {
2020-06-01 16:20:28 +08:00
navigator.serviceWorker.register('/sw.js?v4')
2020-05-19 17:02:54 +08:00
})
</script>
2020-05-18 16:40:31 +08:00
{% for link in links %}
2020-05-21 10:52:14 +08:00
<link{% for attribute, value in link %} {{ attribute }}="{{ value|raw }}"{% endfor %}>
2020-05-18 16:40:31 +08:00
{% endfor %}
2019-09-17 23:10:44 +08:00
<link rel="shortcut icon" href="{{ favicon }}">
<link rel="icon" type="image/png" href="{{ favicon }}" sizes="192x192">
<link rel="apple-touch-icon" href="{{ favicon }}" sizes="180x180">
2020-05-21 11:22:56 +08:00
{% if inline_css %}
<style>{{ inline_css|striptags }}</style>
{% endif %}
2019-09-17 23:10:44 +08:00
{{ extra_head|join('\n')|raw }}