template.include 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <!DOCTYPE html>
  2. <html$if(lang)$ lang="$lang$"$endif$$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. <!-- anti-social media tags -->
  8. <meta property="og:title" content="$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$">
  9. <meta property="og:type" content="article" />
  10. <meta property="og:image" content="https://av.vimuser.org/routeronacob.jpg">
  11. <meta property="og:url" content="$antisocialurl$">
  12. <meta name="twitter:card" content="summary_large_image">
  13. <meta property="og:description" content="$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$">
  14. <meta property="og:site_name" content="$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$">
  15. <meta name="twitter:image:alt" content="$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$">
  16. $for(author-meta)$
  17. <meta name="author" content="$author-meta$">
  18. $endfor$
  19. $if(date-meta)$
  20. <meta name="dcterms.date" content="$date-meta$">
  21. $endif$
  22. $if(keywords)$
  23. <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
  24. $endif$
  25. <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
  26. <style type="text/css">
  27. :not(p)
  28. {
  29. max-width: 50em;
  30. margin: 0 auto;
  31. }
  32. html
  33. {
  34. background: #ddd8e8;
  35. color: #222;
  36. font-family: sans-serif;
  37. line-height: 1.4;
  38. }
  39. code,pre, #TOC, a:hover
  40. {
  41. background: #ccc7e7;
  42. }
  43. a
  44. {
  45. color: #22e;
  46. }
  47. img,video,iframe,pre
  48. {
  49. max-width: 100%;
  50. overflow: auto;
  51. }
  52. .title>*, header ul>li, .nav ul>li,
  53. #footer ul>li, .h:hover>*
  54. {
  55. display: inline;
  56. margin: 0.7%;
  57. text-align :center;
  58. }
  59. .title>*, span.date
  60. {
  61. display: block;
  62. }
  63. html, ul, #TOC
  64. {
  65. padding: 1em;
  66. }
  67. .date, .author, .h a
  68. {
  69. display: none;
  70. }
  71. @media (min-width:50em)
  72. {
  73. .title-logo{display:none}
  74. #TOC
  75. {
  76. float: left;
  77. margin: 1em;
  78. min-width: 25%;
  79. }
  80. }
  81. </style>
  82. $if(quotes)$
  83. <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
  84. $endif$
  85. $if(highlighting-css)$
  86. <style type="text/css">
  87. $highlighting-css$
  88. </style>
  89. $endif$
  90. $for(css)$
  91. <link rel="stylesheet" href="$css$">
  92. $endfor$
  93. $if(math)$
  94. $math$
  95. $endif$
  96. $for(header-includes)$
  97. $header-includes$
  98. $endfor$
  99. <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/feed.xml"/>
  100. </head>
  101. <body>
  102. <div class="page">
  103. $for(include-before)$
  104. $include-before$
  105. $endfor$
  106. $if(title)$
  107. <header>
  108. <div class="title">
  109. <h1 class="title">$title$</h1>
  110. </div>
  111. $if(subtitle)$
  112. <p class="subtitle">$subtitle$</p>
  113. $endif$
  114. $for(author)$
  115. <p class="author">$author$</p>
  116. $endfor$
  117. $if(date)$
  118. <p class="date">$date$</p>
  119. $endif$
  120. <ul>
  121. <li><a href="/">Home</a></li>
  122. <li><a href="/docs/">Tutorials</a></li>
  123. <li><a href="/news/">News</a></li>
  124. <li><a href="/git.html">Send patch</a></li>
  125. <li><a href="/contact.html">Contact</a></li>
  126. </ul>
  127. <hr/>
  128. </header>
  129. $endif$
  130. $if(return)$
  131. $return$
  132. $endif$
  133. $if(toc)$
  134. <nav id="$idprefix$TOC">
  135. <h1>Navigate this page:</h1>
  136. $toc$
  137. </nav>
  138. $endif$
  139. $if(toc)$
  140. <div class="pagetext">
  141. $endif$
  142. $body$
  143. $for(include-after)$
  144. $include-after$
  145. $endfor$
  146. $if(toc)$
  147. </div>
  148. $endif$
  149. </div>
  150. </body>
  151. </html>