1
0

head.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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=”icon” type=”image/x-icon” href="{{ .base_path }}assets/favicon.ico">
  11. <link rel="shortcut icon" type="image/x-icon" href="{{ .base_path }}assets/favicon.ico">
  12. <link rel="manifest" href="{{ .base_path }}assets/manifest.json">
  13. <script>
  14. if ('serviceWorker' in navigator) {
  15. navigator.serviceWorker.register('{{ .base_path }}assets/js/sw.js')
  16. .then(function () {
  17. console.log('Service Worker Registered');
  18. });
  19. }
  20. </script>
  21. <style>
  22. [v-cloak] {
  23. display: none;
  24. }
  25. /* vazirmatn-regular - arabic_latin_latin-ext */
  26. @font-face {
  27. font-display: swap;
  28. font-family: 'Vazirmatn';
  29. font-style: normal;
  30. font-weight: 400;
  31. src: url('{{ .base_path }}assets/Vazirmatn-UI-NL-Regular.woff2') format('woff2');
  32. unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC, U+0030-0039;
  33. }
  34. body {
  35. font-family: -apple-system, BlinkMacSystemFont, 'Vazirmatn', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
  36. 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
  37. 'Segoe UI Emoji', 'Segoe UI Symbol';
  38. }
  39. </style>
  40. <title>{{ .host }}-{{ i18n .title}}</title>
  41. </head>
  42. {{end}}