My static website generator using poole https://www.xythobuz.de
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

page.html 8.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="{{ htmlspecialchars(__encoding__) }}" />
  5. <title>{{ htmlspecialchars(page.title) }} - xythobuz.de</title>
  6. <meta name="description" content="{{ htmlspecialchars(page.get("description", "Electronics & Software Projects")) }}" />
  7. <meta name="keywords" content="{{ htmlspecialchars(page.get("keywords", "xythobuz")) }}" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. <link rel="author" href="xythobuz@xythobuz.de">
  10. <link rel="shortcut icon" href="img/favicon.ico">
  11. <link rel="alternate" type="application/rss+xml" title="Blog" href="rss.xml">
  12. <link type="text/css" rel="stylesheet" href="css/style.css" />
  13. <link type="text/css" rel="stylesheet" href="css/sh_bright.min.css" />
  14. <link type="text/css" rel="stylesheet" href="css/gh-fork-ribbon.css" />
  15. <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Sans:400,700">
  16. <link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.2.18/css/lightgallery.min.css" />
  17. <script type="text/javascript" src="js/sh_main.js"></script>
  18. <!--%
  19. if page.get("flattr", "false") == "true":
  20. print "<script type='text/javascript'>"
  21. print "/* <![CDATA[ */"
  22. print "(function() {"
  23. print "var s = document.createElement('script');"
  24. print "var t = document.getElementsByTagName('script')[0];"
  25. print "s.type = 'text/javascript';"
  26. print "s.async = true;"
  27. print "s.src = '//api.flattr.com/js/0.6/load.js?mode=auto&uid=xythobuz&category=text';"
  28. print "t.parentNode.insertBefore(s, t);"
  29. print "})();"
  30. print "/* ]]> */"
  31. print "</script>"
  32. %-->
  33. </head>
  34. <body onload="sh_highlightDocument('/js/sh/', '.min.js');">
  35. <!--%
  36. if page.get("github", "") != "":
  37. # GitHub Fork-Me Ribbon
  38. print '<div class="github-fork-ribbon-wrapper right fixed">'
  39. print '<div class="github-fork-ribbon"><a href="'
  40. print page.github
  41. print '">Fork me on GitHub</a></div></div>'
  42. %-->
  43. <div id="nav">
  44. <ul>
  45. <li id="home"><a href="index.html">xythobuz.de</a></li>
  46. <!--%
  47. mpages = [p for p in pages if p.get("parent", "") == "main" and p.lang == "en"]
  48. mpages.sort(key=lambda p: int(p["position"]))
  49. entry = ' <li><a href="%s">%s</a></li>'
  50. for p in mpages[1:]:
  51. print(entry % (htmlspecialchars(p["url"]), htmlspecialchars(p["title"])))
  52. %-->
  53. <li><a href="https://github.com/xythobuz">GitHub</a></li>
  54. <li><a href="http://xythobuz.de/git/">Git</a></li>
  55. <li><a href="http://xythobuz.de/lastmusic">🎵</a></li>
  56. <li><a href="http://xythobuz.de/printer.jpg">🔨</a></li>
  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>
  66. <div id="content">
  67. {{ __content__ }}
  68. <!--%
  69. import sys
  70. # Centered DIV
  71. # Flattr Button
  72. if page.get("flattr", "false") == "true":
  73. print '<div style="margin-top: 1em; text-align: center;">'
  74. print '<span id="flattr">'
  75. sys.stdout.write('<a class="FlattrButton" href="')
  76. sys.stdout.write(BASE_URL)
  77. sys.stdout.write('/')
  78. sys.stdout.write(page.url)
  79. sys.stdout.write('" title="')
  80. sys.stdout.write(htmlspecialchars(page.title))
  81. sys.stdout.write('" data-flattr-button="compact">')
  82. sys.stdout.write(htmlspecialchars(page.get("description", page.title)))
  83. sys.stdout.write("</a>\n")
  84. print '</span>'
  85. print '</div>'
  86. # Disqus Comments (only show button to load afterwards)
  87. if page.get("comments", "false") == "true":
  88. print '<div style="margin-top: 1em; text-align: center;">'
  89. print '<button class="show-comments">Load Disqus comments</button>'
  90. print '</div>'
  91. print '<div id="disqus_thread"></div>'
  92. print '<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>'
  93. elif page.get("comments", "false") != "false":
  94. print '<p><a href="%s">Head over here to discuss this article!</a></p>' % page.get("comments", "false")
  95. %-->
  96. </div>
  97. <div id="footer">
  98. <a href="http://bitbucket.org/obensonne/poole">Poole</a>
  99. &middot;
  100. <a href="http://shjs.sourceforge.net">SHJS</a>
  101. &middot;
  102. <a href="https://github.com/sachinchoolur/lightGallery">lightGallery</a>
  103. &middot;
  104. <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC-BY</a>
  105. &middot;
  106. <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>
  107. &middot;
  108. <a href="http://www.amazon.de/registry/wishlist/1TURV4XV2J3VT">Amazon.de Wishlist</a>
  109. &middot;
  110. <a href="http://steamcommunity.com/id/xythobuz/wishlist/?sort=price">Steam Wishlist</a>
  111. &middot;
  112. <a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_send-money&nav=1&email=xythobuz@me.com">PayPal</a>
  113. </div>
  114. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.min.js"></script>
  115. <!--%
  116. # Dynamically load Disqus comments after user requested it
  117. if page.get("comments", "false") == "true":
  118. print '<script type="text/javascript">'
  119. print 'var disqus_shortname = "xythobuz";'
  120. print 'var disqus_identifier = "http://xythobuz.org/' + page["url"] + '";'
  121. print 'var disqus_url = "http://xythobuz.org/' + page["url"] + '";'
  122. print '$(document).ready(function() {'
  123. print '$(".show-comments").on("click", function(){'
  124. print '(function() {'
  125. print 'var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;'
  126. print 'dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";'
  127. print '(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0] ).appendChild(dsq);'
  128. print '})();'
  129. print '$(this).fadeOut();'
  130. print '});'
  131. print '});'
  132. print '</script>'
  133. %-->
  134. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"></script>
  135. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.2.18/js/lightgallery-all.min.js"></script>
  136. <script type="text/javascript">
  137. $(document).ready(function() {
  138. $(".lightgallery").lightGallery();
  139. });
  140. </script>
  141. <img src="http://xythobuz.de/stats/count.php?img" alt="Analytics">
  142. <!-- Piwik -->
  143. <script type="text/javascript">
  144. var _paq = _paq || [];
  145. /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  146. _paq.push(['trackPageView']);
  147. _paq.push(['enableLinkTracking']);
  148. (function() {
  149. var u="//xythobuz.de/piwik/";
  150. _paq.push(['setTrackerUrl', u+'piwik.php']);
  151. _paq.push(['setSiteId', '1']);
  152. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  153. g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  154. })();
  155. </script>
  156. <noscript><p><img src="//xythobuz.de/piwik/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
  157. <!-- End Piwik Code -->
  158. </body>
  159. </html>