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

25 lines
1.2 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 %}
2020-06-28 15:54:41 +08:00
<link rel="preconnect" href="{{ custom_cdn_host }}" id="cdn-host" crossorigin>
2020-05-21 11:22:56 +08:00
{% endif %}
2020-06-11 19:27:15 +08:00
<script id="blessing-globals" type="application/json">{{ blessing|json_encode|raw }}</script>
<script src="{{ url('/meta.js') }}"></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 }}