head.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // import fs from 'fs'
  2. // import path from 'path'
  3. // import { vpRoot } from '@element-plus/build-utils'
  4. // import { languages } from '../utils/lang'
  5. import type { HeadConfig } from 'vitepress'
  6. export const head: HeadConfig[] = [
  7. [
  8. 'link',
  9. {
  10. rel: 'icon',
  11. href: '/images/element-plus-logo-small.svg',
  12. type: 'image/svg+xm',
  13. },
  14. ],
  15. [
  16. 'link',
  17. {
  18. rel: 'apple-touch-icon',
  19. href: '/apple-touch-icon.png',
  20. sizes: '180x180',
  21. },
  22. ],
  23. [
  24. 'link',
  25. {
  26. rel: 'mask-icon',
  27. href: '/safari-pinned-tab.svg',
  28. color: '#5bbad5',
  29. },
  30. ],
  31. [
  32. 'meta',
  33. {
  34. name: 'theme-color',
  35. content: '#ffffff',
  36. },
  37. ],
  38. [
  39. 'meta',
  40. {
  41. name: 'msapplication-TileColor',
  42. content: '#409eff',
  43. },
  44. ],
  45. [
  46. 'meta',
  47. {
  48. name: 'msapplication-config',
  49. content: '/browserconfig.xml',
  50. },
  51. ],
  52. ]
  53. // head.push([
  54. // 'script',
  55. // {},
  56. // fs.readFileSync(path.resolve(vpRoot, 'dark-mode.js'), 'utf-8'),
  57. // ])