My static website generator using poole https://www.xythobuz.de
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <!DOCTYPE html>
  2. <!--%
  3. if page.get("lang", "en") == "de":
  4. print '<html lang="de">'
  5. else:
  6. print '<html lang="en">'
  7. %-->
  8. <head>
  9. <meta charset="{{ htmlspecialchars(__encoding__) }}" />
  10. <title>{{ htmlspecialchars(page.title) }} - xythobuz.de</title>
  11. <meta name="description" content="{{ htmlspecialchars(page.get("description", "Electronics & Software Projects")) }}" />
  12. <meta name="keywords" content="{{ htmlspecialchars(page.get("keywords", "xythobuz")) }}" />
  13. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  14. <link rel="author" href="xythobuz@xythobuz.de" />
  15. <link rel="shortcut icon" href="img/favicon.ico" />
  16. <link rel="alternate" type="application/rss+xml" title="xythobuz.de" href="rss.xml" />
  17. <link type="text/css" rel="stylesheet" href="css/style.css" />
  18. <link type="text/css" rel="stylesheet" href="css/print.css" media="print" />
  19. <link type="text/css" rel="stylesheet" href="css/gh-fork-ribbon.css" />
  20. <link type="text/css" rel="stylesheet" href="css/lightgallery.min.css" />
  21. <script type="text/javascript" src="js/sh_main.js"></script>
  22. </head>
  23. <body onload="sh_highlightDocument('/js/sh/', '.min.js');">
  24. <!--%
  25. link = ""
  26. if page.get("github", "") != "":
  27. link = page.github
  28. if page.get("git", "") != "":
  29. link = page.git
  30. if link != "":
  31. # GitHub Fork-Me Ribbon
  32. print '<div class="github-fork-ribbon-wrapper right-bottom">'
  33. print '<div class="github-fork-ribbon"><a href="'
  34. print link
  35. print '">Fork this with Git</a></div></div>'
  36. %-->
  37. <div id="wrap"><div id="nav">
  38. <ul>
  39. <li id="home"><a href="index.html">xythobuz.de</a></li>
  40. <!--%
  41. mpages = [p for p in pages if p.get("parent", "") == "main" and p.lang == "en"]
  42. mpages.sort(key=lambda p: int(p["position"]))
  43. entry = ' <li><a href="%s">%s</a></li>'
  44. for p in mpages[1:]:
  45. print(entry % (htmlspecialchars(p["url"]), htmlspecialchars(p["title"])))
  46. %-->
  47. <li>-</li>
  48. <li><a href="https://git.xythobuz.de/explore/repos">Gitea</a></li>
  49. <li><a href="https://github.com/xythobuz">GitHub</a></li>
  50. <li><a href="printer.html">🔨</a></li>
  51. <div class="fonts">
  52. <li><span class="font-big">Text:</span></li>
  53. <li><a class="dec" href="#"><span class="font-big">A</span><span class="font-small">A</span></a></li>
  54. <li><a class="reset" href="#"><span class="font-big">A</span><span class="font-big">A</span></a></li>
  55. <li><a class="inc" href="#"><span class="font-small">A</span><span class="font-big">A</span></a></li>
  56. </div>
  57. <!--%
  58. tmp = [p for p in page["lang_links"].iteritems()]
  59. if len(tmp) > 1:
  60. print ' <li>'
  61. print " ".join(["<li><a href='%s'>%s</a></li>" % (url, lang) for lang, url in page["lang_links"].iteritems()]).replace(">en<", '><img src="img/en.png" alt="English"><').replace(">de<", '><img src="img/de.png" alt="Deutsch"><')
  62. print "</li>"
  63. %-->
  64. </ul>
  65. </div></div>
  66. <div id="content">
  67. <!--%
  68. from datetime import datetime
  69. if page.get("noheader", "false") == "false":
  70. if page.get("title", "") == "Blog":
  71. print "<h1>%s</h1>" % (page.get("post", ""))
  72. else:
  73. if page.get("lang", "en") == "de":
  74. print "<h1>%s</h1>" % (page.get("title_de", ""))
  75. else:
  76. print "<h1>%s</h1>" % (page.get("title", ""))
  77. if page.get("date", "") != "":
  78. if page.get("title", "") == "Blog":
  79. if page.get("lang", "en") == "de":
  80. date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%d.%m.%Y")
  81. print "<i>Ver&ouml;ffentlicht am %s.</i>" % date
  82. else:
  83. date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%B %d, %Y")
  84. print "<i>Published on %s.</i>" % date
  85. else:
  86. if page.get("lang", "en") == "de":
  87. date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%d.%m.%Y")
  88. print "<i>Projekt gestartet am %s.</i>" % date
  89. else:
  90. date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%B %d, %Y")
  91. print "<i>Project started on %s.</i>" % date
  92. if page.get("date", "") != "" and page.get("update", "") != "":
  93. print "<br>"
  94. if page.get("update", "") != "":
  95. if page.get("lang", "en") == "de":
  96. date = datetime.strptime(page["update"], "%Y-%m-%d").strftime("%d.%m.%Y")
  97. print "<i>Zuletzt aktualisiert am %s.</i>" % date
  98. else:
  99. date = datetime.strptime(page["update"], "%Y-%m-%d").strftime("%B %d, %Y")
  100. print "<i>Last updated on %s.</i>" % date
  101. link = githubCommitBadge(page, True)
  102. if len(link) > 0:
  103. print "<p>Recent activity on GitHub: " + link + "</p>"
  104. %-->
  105. {{ __content__ }}
  106. <hr>
  107. <!--%
  108. # Disqus Comments (only show button to load afterwards)
  109. if page.get("comments", "false") == "true":
  110. print '<div style="text-align: center;">'
  111. print '<button class="show-comments">Load Disqus comments</button>'
  112. print '<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>'
  113. print '</div>'
  114. print '<div id="disqus_thread"></div>'
  115. print '<hr>'
  116. elif page.get("comments", "false") != "false":
  117. print '<div style="text-align: center;"><a href="%s">Head over here to discuss this article!</a></div>' % page.get("comments", "false")
  118. print '<hr>'
  119. %-->
  120. </div>
  121. <div id="footer">
  122. <a href="https://hg.sr.ht/~obensonne/poole">Poole</a>
  123. &middot;
  124. <a href="http://shjs.sourceforge.net">SHJS</a>
  125. &middot;
  126. <a href="https://github.com/sachinchoolur/lightGallery">lightGallery</a>
  127. &middot;
  128. <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC-BY</a>
  129. &middot;
  130. <a href="https://github.com/sponsors/xythobuz">GitHub Sponsors</a>
  131. &middot;
  132. <a href="http://www.amazon.de/?_encoding=UTF8&amp;camp=1638&amp;creative=19454&amp;linkCode=ur2&amp;site-redirect=de&amp;tag=xythobuzorg-21">Amazon.de Affiliate</a>
  133. &middot;
  134. <a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_send-money&nav=1&email=xythobuz@me.com">PayPal</a>
  135. </div>
  136. <script type="text/javascript" src="js/jquery.min.js"></script>
  137. <!--%
  138. # Dynamically load Disqus comments after user requested it
  139. if page.get("comments", "false") == "true":
  140. print '<script type="text/javascript">'
  141. print 'var disqus_shortname = "xythobuz";'
  142. print 'var disqus_identifier = "http://xythobuz.org/' + page["url"] + '";'
  143. print 'var disqus_url = "http://xythobuz.org/' + page["url"] + '";'
  144. print '$(document).ready(function() {'
  145. print '$(".show-comments").on("click", function(){'
  146. print '(function() {'
  147. print 'var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;'
  148. print 'dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";'
  149. print '(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0] ).appendChild(dsq);'
  150. print '})();'
  151. print '$(this).fadeOut();'
  152. print '});'
  153. print '});'
  154. print '</script>'
  155. %-->
  156. <script type="text/javascript">
  157. $(document).ready(function() {
  158. jQuery(window).resize(function() {
  159. $('#wrap').css('height', $('#nav').css('height'));
  160. });
  161. var fontSize = parseInt($('body').css('font-size'), 10);
  162. var initialFontSize = fontSize;
  163. $('.inc').on('click', function() {
  164. fontSize += 1;
  165. $('#content').css('font-size', fontSize + 'px');
  166. })
  167. $('.dec').on('click', function() {
  168. if (fontSize > 1) {
  169. fontSize -= 1;
  170. $('#content').css('font-size', fontSize + 'px');
  171. }
  172. })
  173. $('.reset').on('click', function() {
  174. if (fontSize != initialFontSize) {
  175. fontSize = initialFontSize;
  176. $('#content').css('font-size', initialFontSize + 'px');
  177. }
  178. })
  179. $(document).keypress(function(event) {
  180. if (event.charCode == '+'.charCodeAt(0)) {
  181. fontSize += 1;
  182. $('#content').css('font-size', fontSize + 'px');
  183. }
  184. if (event.charCode == '-'.charCodeAt(0)) {
  185. if (fontSize > 1) {
  186. fontSize -= 1;
  187. $('#content').css('font-size', fontSize + 'px');
  188. }
  189. }
  190. if (event.charCode == '0'.charCodeAt(0)) {
  191. if (fontSize != initialFontSize) {
  192. fontSize = initialFontSize;
  193. $('#content').css('font-size', initialFontSize + 'px');
  194. }
  195. }
  196. });
  197. })
  198. </script>
  199. <script type="text/javascript" src="js/jquery.mousewheel.min.js"></script>
  200. <script type="text/javascript" src="js/lightgallery-all.min.js"></script>
  201. <script type="text/javascript">
  202. $(document).ready(function() {
  203. var lg = document.getElementsByClassName("lightgallery");
  204. for (var i = 0; i < lg.length; i++) {
  205. var settings = {
  206. loadYoutubeThumbnail: true,
  207. youtubeThumbSize: 'mqdefault',
  208. loadVimeoThumbnail: true,
  209. vimeoThumbSize: 'thumbnail_medium',
  210. youtubePlayerParams: {
  211. modestbranding: 1,
  212. showinfo: 0,
  213. rel: 0
  214. },
  215. vimeoPlayerParams: {
  216. byline: 0,
  217. portrait: 0
  218. },
  219. thumbnail:true,
  220. animateThumb: true,
  221. showThumbByDefault: false,
  222. galleryId: i
  223. };
  224. var d = lg.item(i);
  225. if ($(d).find(".border").length > 0) {
  226. settings.selector = '.border';
  227. }
  228. $(d).lightGallery(settings);
  229. }
  230. });
  231. </script>
  232. <script>
  233. (function(f, a, t, h, o, m){
  234. a[h]=a[h]||function(){
  235. (a[h].q=a[h].q||[]).push(arguments)
  236. };
  237. o=f.createElement('script'),
  238. m=f.getElementsByTagName('script')[0];
  239. o.async=1; o.src=t; o.id='fathom-script';
  240. m.parentNode.insertBefore(o,m)
  241. })(document, window, '//stats.xythobuz.de/tracker.js', 'fathom');
  242. fathom('set', 'siteId', 'APYRK');
  243. fathom('trackPageview');
  244. </script>
  245. </body>
  246. </html>