Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

190 lines
5.4KB

  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="generator" content="pandoc" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
  7. $for(author-meta)$
  8. <meta name="author" content="$author-meta$" />
  9. $endfor$
  10. $if(date-meta)$
  11. <meta name="dcterms.date" content="$date-meta$" />
  12. $endif$
  13. $if(keywords)$
  14. <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
  15. $endif$
  16. <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
  17. <style type="text/css">
  18. code{white-space: pre-wrap;}
  19. span.smallcaps{font-variant: small-caps;}
  20. span.underline{text-decoration: underline;}
  21. div.column{display: inline-block; vertical-align: top; width: 50%;}
  22. $if(quotes)$
  23. q { quotes: "“" "”" "‘" "’"; }
  24. $endif$
  25. </style>
  26. $if(highlighting-css)$
  27. <style type="text/css">
  28. $highlighting-css$
  29. </style>
  30. $endif$
  31. <style type="text/css" charset="utf-8">
  32. body {
  33. font-family: "Fira Sans", "Helvetica Neue", Roboto, sans-serif;
  34. }
  35. pre, code {
  36. font-family: "Fira Mono", "Roboto Mono", monospace;
  37. }
  38. .content table {
  39. width: auto;
  40. margin: auto;
  41. }
  42. .tabs-content li {
  43. display: none;
  44. list-style: none;
  45. }
  46. .tabs-content li.is-active {
  47. display: block;
  48. }
  49. #toc-aside {
  50. position: sticky;
  51. top: 2em;
  52. position: -webkit-sticky;
  53. }
  54. </style>
  55. $for(css)$
  56. <link rel="stylesheet" href="$css$" />
  57. $endfor$
  58. <!--
  59. <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
  60. -->
  61. $for(header-includes)$
  62. $header-includes$
  63. $endfor$
  64. </head>
  65. <body>
  66. <section class="hero$if(bulma.hero)$$for(bulma.hero)$ is-$bulma.hero$$endfor$$else$ is-primary$endif$">
  67. <div class="hero-body">
  68. <div class="container$if(bulma.hero_body)$$for(bulma.hero_body)$ $bulma.hero_body$$endfor$$endif$">
  69. $if(title)$
  70. <h1 class="title is-1 toc-ignore">$title$</h1>
  71. $endif$
  72. $if(subtitle)$
  73. <h2 class="subtitle is-3 toc-ignore"><em>$subtitle$</em></h2>
  74. $endif$
  75. $if(date)$
  76. <h3 class="subtitle is-5 toc-ignore">$date$</h3>
  77. $endif$
  78. $if(bulma.hero_links)$
  79. <div class="buttons">
  80. $for(bulma.hero_links)$
  81. <a class="button$if(bulma.hero_button)$$for(bulma.hero_button)$ is-$bulma.hero_button$$endfor$$else$is-primary is-inverted is-outlined$endif$" href="$bulma.hero_links.url$">
  82. $if(bulma.hero_links.icon)$
  83. <span class="icon is-small">
  84. <i class="$bulma.hero_links.icon$"></i>
  85. </span>
  86. $endif$
  87. <span>$bulma.hero_links.name$</span>
  88. </a>
  89. $endfor$
  90. </div>
  91. $endif$ <!-- bulma.hero_links -->
  92. </div>
  93. </div>
  94. </section>
  95. <section class="section">
  96. <div class="container">
  97. <div class="columns">
  98. <div class="column $if(toc)$is-three-quarters-desktop is-full-tablet is-full-mobile$else$is-full$endif$">
  99. <div class="content" id="content-body">
  100. $if(author)$
  101. <section class="section" id="authors">
  102. <div class="content">
  103. <div class="level">
  104. $for(author)$
  105. <div class="level-item has-text-centered">
  106. <div>
  107. $if(author.name)$
  108. <p class="title is-5">
  109. $if(author.url)$
  110. <a href="$author.url$">$author.name$</a>
  111. $else$
  112. $author.name$
  113. $endif$
  114. </p>
  115. $endif$
  116. $if(author.extra)$
  117. <p class="subtitle is-6">
  118. $for(author.extra)$$author.extra$$sep$<br>$endfor$
  119. </p>
  120. $endif$
  121. </div>
  122. </div>
  123. $endfor$
  124. </div>
  125. </div>
  126. </section>
  127. $endif$
  128. $body$
  129. </div>
  130. </div>
  131. <div class="column">
  132. <aside class="menu" id="toc-aside" data-gumshoe>
  133. $if(toc)$$table-of-contents$$endif$
  134. </aside>
  135. </div>
  136. </div>
  137. </div>
  138. </section>
  139. $for(include-after)$
  140. $include-after$
  141. $endfor$
  142. <script>
  143. // add bulma table styles to pandoc tables
  144. document.addEventListener("DOMContentLoaded", function(event) {
  145. var tableClasses = ["table", "is-striped", "is-hoverable"];
  146. var tables = document.getElementById('content-body').getElementsByTagName("table");
  147. for (var i = 0; i < tables.length; i++) {
  148. tables[i].classList.add(...tableClasses);
  149. }
  150. })
  151. </script>
  152. $if(toc)$
  153. $if(rmarkdown-will-handle-deps)$
  154. $else$
  155. <script src="https://cdnjs.cloudflare.com/ajax/libs/gumshoe/3.5.1/js/gumshoe.min.js"></script>
  156. <script src="https://raw.githubusercontent.com/ederssouza/vanillajs-scrollspy/master/dist/vanillajs-scrollspy.min.js"></script>
  157. $endif$
  158. <script>
  159. gumshoe.init({activeClass: "has-text-weight-semibold"});
  160. const toc = document.querySelector('#toc-aside');
  161. const scrollspy = new VanillaScrollspy(toc, 1000, 'easeInOutQuint');
  162. scrollspy.init();
  163. // Add appropriate TOC classes
  164. document.addEventListener("DOMContentLoaded", function(event) {
  165. var toc = document.getElementById('toc-aside').getElementsByTagName("ul");
  166. for (var i = 0; i < toc.length; i++) {
  167. toc[i].classList.add("menu-list");
  168. }
  169. })
  170. </script>
  171. $endif$
  172. $if(mathjax-url)$
  173. <!-- dynamically load mathjax for compatibility with self-contained -->
  174. <script>
  175. document.addEventListener("DOMContentLoaded", function(event) {
  176. var script = document.createElement("script");
  177. script.type = "text/javascript";
  178. script.src = "$mathjax-url$";
  179. document.getElementsByTagName("head")[0].appendChild(script);
  180. });
  181. </script>
  182. $endif$
  183. </body>
  184. </html>