My static website generator using poole https://www.xythobuz.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

page.html 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. <script type="text/javascript" src="js/sh_main.js"></script>
  17. <script type="text/javascript" src="yoxview/yoxview-init.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="http://xythobuz.de/lastmusic">♫</a></li>
  54. <!--%
  55. tmp = [p for p in page["lang_links"].iteritems()]
  56. if len(tmp) > 1:
  57. print '<li>'
  58. 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"><')
  59. print "</li>"
  60. %-->
  61. </ul>
  62. </div>
  63. <div style="width: 75%; margin-left: auto; margin-right: auto;">
  64. {{ __content__ }}
  65. <!--%
  66. import sys
  67. # Centered DIV
  68. if page.get("flattr", "false") == "true" or page.get("twitter", "") != "" or page.get("reddit", "") != "" or page.get("github", "") != "" or page.get("print", "false") == "true":
  69. print '<div style="margin-top: 1em; text-align: center;">'
  70. # Print and PDF Buttons
  71. if page.get("print", "false") == "true":
  72. print """<script>var pfHeaderImgUrl = '';var pfHeaderTagline = '';var pfdisableClickToDel = 0;var pfHideImages = 0;var pfImageDisplayStyle = 'right';var pfDisablePDF = 0;var pfDisableEmail = 0;var pfDisablePrint = 0;var pfCustomCSS = '';var pfBtVersion='1';(function(){var js, pf;pf = document.createElement('script');pf.type = 'text/javascript';if('https:' == document.location.protocol){js='https://pf-cdn.printfriendly.com/ssl/main.js'}else{js='http://cdn.printfriendly.com/printfriendly.js'}pf.src=js;document.getElementsByTagName('head')[0].appendChild(pf)})();</script><a href="http://www.printfriendly.com" style="color:#6D9F00;text-decoration:none;" class="printfriendly" onclick="window.print();return false;" title="Printer Friendly and PDF"><img style="border:none;margin:0 6px" src="https://pf-cdn.printfriendly.com/images/icons/pf-print-icon.gif" width="16" height="15" alt="Print Friendly Version of this page" />Print <img style="border:none;margin:0 6px" src="https://pf-cdn.printfriendly.com/images/icons/pf-pdf-icon.gif" width="12" height="12" alt="Get a PDF version of this webpage" />PDF</a>"""
  73. # Flattr Button
  74. if page.get("flattr", "false") == "true":
  75. print '<span id="flattr">'
  76. sys.stdout.write('<a class="FlattrButton" href="')
  77. sys.stdout.write(BASE_URL)
  78. sys.stdout.write('/')
  79. sys.stdout.write(page.url)
  80. sys.stdout.write('" title="')
  81. sys.stdout.write(htmlspecialchars(page.title))
  82. sys.stdout.write('" data-flattr-button="compact">')
  83. sys.stdout.write(htmlspecialchars(page.get("description", page.title)))
  84. sys.stdout.write("</a>\n")
  85. print '</span>'
  86. # Twitter Button
  87. if page.get("twitter", "") != "":
  88. print '<span id="twitter">'
  89. sys.stdout.write('<a href="https://twitter.com/share" class="twitter-share-buttdata-via="')
  90. sys.stdout.write(page.twitter)
  91. sys.stdout.write('" data-dnt="true" data-related="')
  92. sys.stdout.write(page.twitter)
  93. sys.stdout.write('" data-count="vertical">Tweet</a>')
  94. sys.stdout.write('<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twi.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitwjs");')
  95. sys.stdout.write("</script>\n")
  96. print '</span>'
  97. # Reddit Button
  98. if page.get("reddit", "") != "":
  99. print '<span id="reddit">'
  100. sys.stdout.write('<script type="text/javascript">reddit_url = "')
  101. if (page.reddit == "true"):
  102. sys.stdout.write(BASE_URL)
  103. sys.stdout.write('/')
  104. sys.stdout.write(page.url)
  105. else:
  106. sys.stdout.write(page.reddit)
  107. sys.stdout.write('";</script>')
  108. sys.stdout.write("\n")
  109. sys.stdout.write('<script type="text/javascript" src="http://www.redcom/static/button/button2.js"></script>')
  110. sys.stdout.write("\n")
  111. print '</span>'
  112. # GitHub Fork Button. Place this last!
  113. if page.get("github", "") != "":
  114. print '<span id="github">'
  115. sys.stdout.write('<a href="')
  116. sys.stdout.write(page.github)
  117. sys.stdout.write('" class="gitforked-button gitforked-forks gitforked-watchers"></a>')
  118. sys.stdout.write("\n")
  119. print '</span>'
  120. # Close DIV, horizontal line when no comments
  121. if page.get("flattr", "false") == "true" or page.get("twitter", "") != "" or page.get("reddit", "") != "" or page.get("github", "") != "" or page.get("print", "false") == "true":
  122. print '</div>'
  123. # Disqus Comments
  124. if page.get("comments", "false") == "true":
  125. print '<div id="disqus_thread"></div>'
  126. print '<script type="text/javascript">'
  127. print 'var disqus_shortname = "xythobuz";'
  128. print '(function() {'
  129. print 'var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;'
  130. print 'dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";'
  131. print '(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0] ).appendChild(dsq);'
  132. print '})();'
  133. print '</script>'
  134. print '<noscript>Please enable JavaScript to view the <a href="http://disqus. com/?ref_noscript">comments powered by Disqus.</a></noscript>'
  135. print '<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>'
  136. elif page.get("comments", "false") != "false":
  137. print '<p><a href="%s">Head over here to discuss this article!</a></p>' % page.get("comments", "false")
  138. %-->
  139. </div>
  140. <div id="footer">
  141. <a href="http://bitbucket.org/obensonne/poole">Poole</a>
  142. &middot;
  143. <a href="http://shjs.sourceforge.net">SHJS</a>
  144. &middot;
  145. <a href="http://www.yoxigen.com/yoxview/">YoxView</a>
  146. &middot;
  147. <a rel="license" href="http://creativecommons.org/licenses/by/3.0/de/deed.en">CC-BY</a>
  148. &middot;
  149. <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>
  150. </div>
  151. <img src="http://xythobuz.de/stats/count.php?img" alt="Analytics">
  152. <!-- Piwik -->
  153. <script type="text/javascript">
  154. var _paq = _paq || [];
  155. _paq.push(['trackPageView']);
  156. _paq.push(['enableLinkTracking']);
  157. (function() {
  158. var u=(("https:" == document.location.protocol) ? "https" : "http") + "://xythobuz.de/piwik//";
  159. _paq.push(['setTrackerUrl', u+'piwik.php']);
  160. _paq.push(['setSiteId', 1]);
  161. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
  162. g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  163. })();
  164. </script>
  165. <noscript><p><img src="http://xythobuz.de/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
  166. <!-- End Piwik Code -->
  167. <script src="http://gitforked.com/api/1.1/button.js" type="text/javascript"></script>
  168. </body>
  169. </html>