1
0

head.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {{define "head"}}
  2. <head>
  3. <meta charset="UTF-8">
  4. <meta name="renderer" content="webkit">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" href="{{ .base_path }}assets/[email protected]/antd.min.css">
  8. <link rel="stylesheet" href="{{ .base_path }}assets/[email protected]/theme-chalk/display.css">
  9. <link rel="stylesheet" href="{{ .base_path }}assets/css/custom.css?{{ .cur_ver }}">
  10. <link rel="manifest" href="{{ .base_path }}assets/manifest.json">
  11. <script>
  12. if ('serviceWorker' in navigator) {
  13. navigator.serviceWorker.register('{{ .base_path }}assets/js/sw.js')
  14. .then(function () {
  15. console.log('Service Worker Registered');
  16. });
  17. }
  18. </script>
  19. <style>
  20. [v-cloak] {
  21. display: none;
  22. }
  23. /* vazirmatn-regular - arabic_latin_latin-ext */
  24. @font-face {
  25. font-display: swap;
  26. font-family: 'Vazirmatn';
  27. font-style: normal;
  28. font-weight: 400;
  29. src: url('{{ .base_path }}assets/Vazirmatn-UI-NL-Regular.woff2') format('woff2');
  30. unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC, U+0030-0039;
  31. }
  32. body {
  33. font-family: -apple-system, BlinkMacSystemFont, 'Vazirmatn', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
  34. 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
  35. 'Segoe UI Emoji', 'Segoe UI Symbol';
  36. }
  37. </style>
  38. <title>{{ .host }}-{{ i18n .title}}</title>
  39. </head>
  40. <div id="message"></div>
  41. {{end}}