header.tx 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. : if (!$no_doctype) {
  2. <!doctype html>
  3. : }
  4. <html dir="auto" lang="<: $lang :>">
  5. <head>
  6. <title><: $title | mark_raw :></title>
  7. <meta charset="utf-8" />
  8. <link rel="alternate" title="rss" type="application/rss+xml" href="<: $route :>?format=rss" />
  9. <link rel="icon" type="image/svg+xml" href="/<: $theme_dir :>/img/icon/favicon.svg" />
  10. <link rel="apple-touch-icon" type="image/png" sizes="167x167" href="/<: $theme_dir :>/img/icon/favicon-167.png" />
  11. <link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/<: $theme_dir :>/img/icon/favicon-180.png" />
  12. <link rel="icon" type="image/png" sizes="48x48" href="/<: $theme_dir :>/img/icon/favicon-48.png" />
  13. <link rel="icon" type="image/png" sizes="192x192" href="/<: $theme_dir :>/img/icon/favicon-192.png" />
  14. <link rel="manifest" href="/api/webmanifest" />
  15. : if ($author) {
  16. <meta name="author" content="<: $author :>"/>
  17. : }
  18. : if ($meta_desc) {
  19. <meta name="description" content="<: $meta_desc :>"/>
  20. : }
  21. : if ($default_tags) {
  22. <meta name="tags" content="<: $default_tags :>" />
  23. : }
  24. : if ($meta_tags) {
  25. <: $meta_tags | mark_raw :>
  26. : }
  27. <meta name="viewport" content="width=device-width" />
  28. : if ($embed) {
  29. <base target="_blank" />
  30. <link rel="stylesheet" type="text/css" href="/styles/embed.css" media="screen" />
  31. : }
  32. <!-- Stylesheets !-->
  33. : for $stylesheets -> $stylesheet {
  34. <link rel="preload" type="text/css" href="<: $stylesheet :>" as="style" />
  35. <link rel="stylesheet" type="text/css" href="<: $stylesheet :>" media="screen" />
  36. : }
  37. <!-- Print Styles !-->
  38. : for $print_styles -> $print_style {
  39. <link rel="preload" type="text/css" href="<: $print_style :>" as="style" />
  40. <link rel="stylesheet" type="text/css" href="<: $print_style :>" media="print" />
  41. : }
  42. <!-- For highlight.js !-->
  43. <link rel="preload" type="text/css" href="/styles/obsidian.min.css" as="style" />
  44. <link rel="stylesheet" type="text/css" href="/styles/obsidian.min.css" />
  45. <!-- For reveal.js !-->
  46. <link rel="preload" type="text/css" href="/styles/reveal.css" as="style" />
  47. <link rel="stylesheet" type="text/css" href="/styles/reveal.css" />
  48. <link rel="preload" type="text/css" href="/styles/reveal-white.css" as="style" />
  49. <link rel="stylesheet" type="text/css" href="/styles/reveal-white.css" />
  50. <!-- Javascript !-->
  51. : for $scripts -> $script {
  52. <script type="text/javascript" src="<: $script :>"></script>
  53. : }
  54. </head>
  55. <body>