header.tx 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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="icon" type="image/svg+xml" href="<: $theme_dir :>/img/icon/favicon.svg" />
  9. <link rel="apple-touch-icon" type="image/png" sizes="167x167" href="<: $theme_dir :>/img/icon/favicon-167.png" />
  10. <link rel="apple-touch-icon" type="image/png" sizes="180x180" href="<: $theme_dir :>/img/icon/favicon-180.png" />
  11. <link rel="icon" type="image/png" sizes="48x48" href="<: $theme_dir :>/img/icon/favicon-48.png" />
  12. <link rel="icon" type="image/png" sizes="192x192" href="<: $theme_dir :>/img/icon/favicon-192.png" />
  13. <link rel="manifest" href="/api/webmanifest" />
  14. : if ($author) {
  15. <meta name="author" content="<: $author :>"/>
  16. : }
  17. : if ($meta_desc) {
  18. <meta name="description" content="<: $meta_desc :>"/>
  19. : }
  20. : if ($default_tags) {
  21. <meta name="tags" content="<: $default_tags :>" />
  22. : }
  23. : if ($meta_tags) {
  24. <: $meta_tags | mark_raw :>
  25. : }
  26. <meta name="viewport" content="width=device-width" />
  27. <link rel="preload" type="text/css" href="/styles/structure.css" as="style" />
  28. <link rel="stylesheet" type="text/css" href="/styles/structure.css" />
  29. <link rel="stylesheet" type="text/css" href="/styles/screen.css" media="screen" />
  30. <link rel="stylesheet" type="text/css" href="/styles/print.css" media="print" />
  31. <!-- For highlight.js !-->
  32. <link rel="preload" type="text/css" href="/styles/obsidian.min.css" as="style" />
  33. <link rel="stylesheet" type="text/css" href="/styles/obsidian.min.css" />
  34. : if ($embed) {
  35. <base target="_blank" />
  36. <link rel="stylesheet" type="text/css" href="/styles/embed.css" media="screen" />
  37. : }
  38. <!-- Stylesheets !-->
  39. : for $stylesheets -> $stylesheet {
  40. <link rel="stylesheet" type="text/css" href="<: $stylesheet :>" media="screen" />
  41. : }
  42. : for $print_styles -> $print_style {
  43. <link rel="stylesheet" type="text/css" href="<: $print_style :>" media="print" />
  44. : }
  45. : for $scripts -> $script {
  46. <script type="text/javascript" src="<: $script :>"></script>
  47. : }
  48. </head>
  49. <body>