blessing-skin-server/resources/views/shared/head.twig
Zephyr Lykos af2c13a8b4
cleanup: wip part 3
twig + vite integration done
needs https://github.com/rcrowe/TwigBridge/pull/435
hmr: to be tested
2024-02-24 00:53:19 +08:00

24 lines
1.1 KiB
Twig

<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 }}
{% if custom_cdn_host %}
<link rel="preconnect" href="{{ custom_cdn_host }}" id="cdn-host" crossorigin>
{% endif %}
<script>window.blessing = {{ blessing|json_encode|raw }}</script>
{{ vite('resources/assets/src/app.css')|raw }}
{% for link in links %}
<link{% for attribute, value in link %} {{ attribute }}="{{ value|raw }}"{% endfor %}>
{% endfor %}
<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">
{% if inline_css %}
<style>{{ inline_css|striptags|raw }}</style>
{% endif %}
{{ extra_head|join('\n')|raw }}