You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
3.1 KiB

  1. doctype html
  2. html(lang=siteConfig.lang)
  3. head
  4. meta(http-equiv='X-UA-Compatible', content='IE=edge')
  5. meta(charset='UTF-8')
  6. meta(name='viewport', content='user-scalable=yes, width=device-width, initial-scale=1, maximum-scale=5')
  7. meta(name='theme-color', content='#1976d2')
  8. meta(name='msapplication-TileColor', content='#1976d2')
  9. meta(name='msapplication-TileImage', content='/favicons/mstile-150x150.png')
  10. title= pageMeta.title + ' | ' + config.title
  11. //- SEO / OpenGraph
  12. meta(name='description', content=pageMeta.description)
  13. meta(property='og:title', content=pageMeta.title)
  14. meta(property='og:type', content='website')
  15. meta(property='og:description', content=pageMeta.description)
  16. meta(property='og:image', content=pageMeta.image)
  17. meta(property='og:url', content=pageMeta.url)
  18. meta(property='og:site_name', content=config.title)
  19. //- Favicon
  20. link(rel='apple-touch-icon', sizes='180x180', href='/apple-touch-icon.png')
  21. link(rel='icon', type='image/png', sizes='192x192', href='/favicons/android-icon-192x192.png')
  22. link(rel='icon', type='image/png', sizes='32x32', href='/favicons/favicon-32x32.png')
  23. link(rel='icon', type='image/png', sizes='16x16', href='/favicons/favicon-16x16.png')
  24. link(rel='mask-icon', href='/favicons/safari-pinned-tab.svg', color='#1976d2')
  25. link(rel='manifest', href='/manifest.json')
  26. //- Site Properties
  27. script.
  28. var siteConfig = !{JSON.stringify(siteConfig)}; var siteLangs = !{JSON.stringify(langs)}
  29. //- Icon Set
  30. if config.theming.iconset === 'fa'
  31. link(
  32. type='text/css'
  33. rel='stylesheet'
  34. href='https://use.fontawesome.com/releases/v5.10.0/css/all.css'
  35. )
  36. else if config.theming.iconset === 'fa4'
  37. link(
  38. type='text/css'
  39. rel='stylesheet'
  40. href='https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css'
  41. )
  42. //- CSS
  43. <% for (var index in htmlWebpackPlugin.files.css) { %>
  44. <% if (htmlWebpackPlugin.files.cssIntegrity) { %>
  45. link(
  46. type='text/css'
  47. rel='stylesheet'
  48. href='<%= htmlWebpackPlugin.files.css[index] %>'
  49. integrity=config.security.securitySRI ? '<%= htmlWebpackPlugin.files.cssIntegrity[index] %>' : false
  50. crossorigin='<%= webpackConfig.output.crossOriginLoading %>'
  51. )
  52. <% } else { %>
  53. link(
  54. type='text/css'
  55. rel='stylesheet'
  56. href='<%= htmlWebpackPlugin.files.css[index] %>'
  57. )
  58. <% } %>
  59. <% } %>
  60. //- JS
  61. <% for (var index in htmlWebpackPlugin.files.js) { %>
  62. <% if (htmlWebpackPlugin.files.jsIntegrity) { %>
  63. script(
  64. type='text/javascript'
  65. src='<%= htmlWebpackPlugin.files.js[index] %>'
  66. integrity=config.security.securitySRI ? '<%= htmlWebpackPlugin.files.jsIntegrity[index] %>' : false
  67. crossorigin='<%= webpackConfig.output.crossOriginLoading %>'
  68. )
  69. <% } else { %>
  70. script(
  71. type='text/javascript'
  72. src='<%= htmlWebpackPlugin.files.js[index] %>'
  73. )
  74. <% } %>
  75. <% } %>
  76. != analyticsCode.head
  77. block head
  78. body
  79. != analyticsCode.bodyStart
  80. block body
  81. != analyticsCode.bodyEnd