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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <html>
  2. <head>
  3. <meta charset="{{ htmlspecialchars(__encoding__) }}" />
  4. <title>{{ htmlspecialchars(page.title) }} - xythobuz.org</title>
  5. <meta name="description" content="{{ htmlspecialchars(page.get("description", "Electronics & Software Projects")) }}" />
  6. <meta name="keywords" content="{{ htmlspecialchars(page.get("keywords", "xythobuz")) }}" />
  7. <link rel="author" href="xythobuz@xythobuz.org">
  8. <link rel="shortcut icon" href="img/favicon.ico">
  9. <script type="text/javascript" src="js/sh_main.js"></script>
  10. <link type="text/css" rel="stylesheet" href="css/sh_bright.min.css" />
  11. <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
  12. <link rel="alternate" type="application/rss+xml" title="Blog Feed" href="rss.xml">
  13. <link rel="stylesheet" href="css/gh-fork-ribbon.css" />
  14. <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
  15. <!--%
  16. if page.get("flattr", "false") == "true":
  17. print "<script type='text/javascript'>"
  18. print "/* <![CDATA[ */"
  19. print "(function() {"
  20. print "var s = document.createElement('script');"
  21. print "var t = document.getElementsByTagName('script')[0];"
  22. print "s.type = 'text/javascript';"
  23. print "s.async = true;"
  24. print "s.src = '//api.flattr.com/js/0.6/load.js?mode=auto&uid=xythobuz&category=text';"
  25. print "t.parentNode.insertBefore(s, t);"
  26. print "})();"
  27. print "/* ]]> */"
  28. print "</script>"
  29. %-->
  30. </head>
  31. <body onload="sh_highlightDocument('/js/sh/', '.min.js');">
  32. <!--%
  33. if page.get("github", "") != "":
  34. # GitHub Fork-Me Ribbon
  35. print '<div class="github-fork-ribbon-wrapper right">'
  36. print '<div class="github-fork-ribbon"><a href="'
  37. print page.github
  38. print '">Fork me on GitHub</a></div></div>'
  39. %-->
  40. <div id="header">
  41. <h1>xythobuz.org</h1>
  42. <h2>{{ page.get("funny", htmlspecialchars(page["title"])) }}</h2>
  43. </div>
  44. <!--%
  45. # if len("".join(["%s" % lang for lang in page["lang_links"]])) > 2:
  46. print '<div id="lang"><span id="lang">Translation: '
  47. print " | ".join(["<a href='%s'>%s</a>" % (url, lang) for lang, url in page["lang_links"].iteritems()])
  48. print "</span></div>"
  49. %-->
  50. <div class="colmask leftmenu"><div class="colleft">
  51. <div class="content">
  52. <!--%
  53. import sys
  54. # Flattr Button
  55. if page.get("flattr", "false") == "true":
  56. print '<div id="flattr">'
  57. sys.stdout.write('<a class="FlattrButton" href="')
  58. sys.stdout.write(BASE_URL)
  59. sys.stdout.write('/')
  60. sys.stdout.write(page.url)
  61. sys.stdout.write('" title="')
  62. sys.stdout.write(htmlspecialchars(page.title))
  63. sys.stdout.write('">')
  64. sys.stdout.write(htmlspecialchars(page.get("description", page.title)))
  65. sys.stdout.write("</a>\n")
  66. print '</div>'
  67. # Twitter Button
  68. if page.get("twitter", "") != "":
  69. print '<div id="twitter">'
  70. sys.stdout.write('<a href="https://twitter.com/share" class="twitter-share-button" data-via="')
  71. sys.stdout.write(page.twitter)
  72. sys.stdout.write('" data-dnt="true" data-related="')
  73. sys.stdout.write(page.twitter)
  74. sys.stdout.write('" data-count="vertical">Tweet</a>')
  75. sys.stdout.write('<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");')
  76. sys.stdout.write("</script>\n")
  77. print '</div>'
  78. # Reddit Button
  79. if page.get("reddit", "") != "":
  80. print '<div id="reddit">'
  81. sys.stdout.write('<script type="text/javascript">reddit_url = "')
  82. if (page.reddit == "true"):
  83. sys.stdout.write(BASE_URL)
  84. sys.stdout.write('/')
  85. sys.stdout.write(page.url)
  86. else:
  87. sys.stdout.write(page.reddit)
  88. sys.stdout.write('";</script>')
  89. sys.stdout.write("\n")
  90. sys.stdout.write('<script type="text/javascript" src="http://www.reddit.com/static/button/button2.js"></script>')
  91. sys.stdout.write("\n")
  92. print '</div>'
  93. # GitHub Fork Button
  94. if page.get("github", "") != "":
  95. print '<div id="github">'
  96. sys.stdout.write('<a href="')
  97. sys.stdout.write(page.github)
  98. sys.stdout.write('" class="gitforked-button gitforked-forks gitforked-watchers">Fork</a>')
  99. sys.stdout.write("\n")
  100. print '</div>'
  101. %-->
  102. {{ __content__ }}
  103. <!--%
  104. if page.get("comments", "false") == "true":
  105. print '<div id="disqus_thread"></div>'
  106. print '<script type="text/javascript">'
  107. print 'var disqus_shortname = "xythobuz";'
  108. print '(function() {'
  109. print 'var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;'
  110. print 'dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";'
  111. print '(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq);'
  112. print '})();'
  113. print '</script>'
  114. print '<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>'
  115. print '<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>'
  116. %-->
  117. </div>
  118. <div class="nav">
  119. <h3>Thomas Buck</h3>
  120. <div id="logo"><img id="logo" src="http://www.gravatar.com/avatar/8d18fec40a74782052fb4c007d212475?s=180" alt="Avatar"></div>
  121. <p id="bio">
  122. 19 year old Information Engineering student from Germany.
  123. Making cool stuff, mostly with AVR microcontrollers.
  124. </p>
  125. <iframe src="http://githubbadge.appspot.com/badge/xythobuz?a=0" style="border: 0;height: 142px;width: 200px;overflow: hidden;" frameBorder=0></iframe>
  126. <ul id="menuList">
  127. <!--%
  128. blanked = "a"
  129. mpages = [p for p in pages if "menu-position" in p and p.lang == "en"]
  130. mpages.sort(key=lambda p: int(p["menu-position"]))
  131. entry = '<li><a href="%s">%s</a></li>'
  132. for p in mpages:
  133. if int(p["menu-position"]) >= 10 and blanked == "a":
  134. blanked = "b"
  135. print '<br>'
  136. if int(p["menu-position"]) >= 55 and blanked == "b":
  137. blanked = "c"
  138. print '<br>'
  139. print(entry % (htmlspecialchars(p["url"]), htmlspecialchars(p["title"])))
  140. %-->
  141. </ul>
  142. <div id="recent">
  143. Recent blog posts:
  144. <ul id="recentList">
  145. <!--%
  146. from datetime import datetime
  147. posts = [p for p in pages if "post" in p] # get all blog post pages
  148. posts.sort(key=lambda p: p.get("date"), reverse=True) # sort post pages by date
  149. posts = posts[:5]
  150. for p in posts:
  151. print '<li class="recentList"><a href="%s">%s</a></li><li class="recentDate">%s</li>' % (p.url, p.post, p.date)
  152. %-->
  153. </ul>
  154. </div>
  155. </div>
  156. </div></div>
  157. <img id="dude" alt="The Dude" src="img/dude.png">
  158. <div id="footer">
  159. Built with <a href="http://bitbucket.org/obensonne/poole">Poole</a>
  160. &middot;
  161. Licensed as <a href="http://creativecommons.org/licenses/by/3.0">CC-BY</a>
  162. &middot;
  163. <a href="http://validator.w3.org/check?uri=referer">Validate HTML</a>
  164. &middot;
  165. <a href="http://jigsaw.w3.org/css-validator/validator?uri=xythobuz.org%2Fstyle.css&amp;profile=css3">Validate CSS</a>
  166. &middot;
  167. <a href="http://feed1.w3.org/check.cgi?url={{ BASE_URL }}/rss.xml">Validate RSS</a>
  168. &middot;
  169. <a href="http://www.validome.org/google/validate?url={{ BASE_URL }}&amp;googleTyp=SITEMAP">Validate Sitemap</a>
  170. </div>
  171. <!--%
  172. print '<script src="http://gitforked.com/api/1.1/button.js" type="text/javascript"></script>'
  173. %-->
  174. </body>
  175. </html>