header.tx 2.7 KB

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