template.include 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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/untitled.png">
  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. $if(quotes)$
  27. <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
  28. $endif$
  29. $if(highlighting-css)$
  30. <style type="text/css">
  31. $highlighting-css$
  32. </style>
  33. $endif$
  34. $for(css)$
  35. <link rel="stylesheet" href="$css$">
  36. $endfor$
  37. $if(math)$
  38. $math$
  39. $endif$
  40. $for(header-includes)$
  41. $header-includes$
  42. $endfor$
  43. <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/feed.xml"/>
  44. <style type="text/css">
  45. html{
  46. background:#222;
  47. color:#eee;
  48. }
  49. .date,.author,.h a{display:none}
  50. code,pre,#TOC,a:hover{background:#444}
  51. :not(p),a:hover {
  52. max-width:50em;
  53. margin:0 auto;
  54. font-family:sans-serif;
  55. line-height:1.4
  56. }
  57. a{color:#fcc}
  58. .title>*, header ul>li, .nav ul>li,
  59. #footer ul>li, .h:hover>*
  60. ul>li
  61. {
  62. display:inline;
  63. margin:.7%;
  64. text-align:center;
  65. }
  66. .title>*,span.date{display:block}
  67. img,video{max-width:100%}
  68. #TOC{
  69. float:left;
  70. margin:1em
  71. }
  72. html,ul,#TOC{padding:1em}
  73. </style>
  74. </head>
  75. <body>
  76. <div class="page">
  77. $for(include-before)$
  78. $include-before$
  79. $endfor$
  80. $if(title)$
  81. <header>
  82. <div class="title">
  83. <h1 class="title">$title$</h1>
  84. </div>
  85. $if(subtitle)$
  86. <p class="subtitle">$subtitle$</p>
  87. $endif$
  88. $for(author)$
  89. <p class="author">$author$</p>
  90. $endfor$
  91. $if(date)$
  92. <p class="date">$date$</p>
  93. $endif$
  94. <ul>
  95. <li><a href="/">Home</a></li>
  96. <li><a href="/download.html">Download</a></li>
  97. <li><a href="/news/">News</a></li>
  98. <li><a href="/tasks/">TODO</a></li>
  99. <li><a href="https://codeberg.org/vimuser/untitled/issues">Report bug</a></li>
  100. <li><a href="/git.html">Send patches</a></li>
  101. <li><strong><a href="/contact.html">Contact</a></strong></li>
  102. <li><strong><a href="/who.html">Who!?!?</a></strong></li>
  103. <li><strong><a href="/donate.html">Donate</a></strong></li>
  104. </ul>
  105. </header>
  106. $endif$
  107. $if(return)$
  108. $return$
  109. $endif$
  110. $if(toc)$
  111. <nav id="$idprefix$TOC">
  112. <h1>Navigate this page:</h1>
  113. $toc$
  114. </nav>
  115. $endif$
  116. $if(toc)$
  117. <div class="pagetext">
  118. $endif$
  119. $body$
  120. $for(include-after)$
  121. $include-after$
  122. $endfor$
  123. $if(toc)$
  124. </div>
  125. $endif$
  126. </div>
  127. </body>
  128. </html>