My static website generator using poole https://www.xythobuz.de
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

page.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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/sh_bright.min.css" />
  13. <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" media="screen" />
  14. <link rel="stylesheet" href="css/bootstrap-responsive.min.css" type="text/css" media="screen" />
  15. <link rel="stylesheet" href="css/gh-fork-ribbon.css" />
  16. <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
  17. <script type="text/javascript" src="js/sh_main.js"></script>
  18. <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.1/jquery.min.js"></script>
  19. <script type="text/javascript" src="js/bootstrap.min.js"></script>
  20. <!--%
  21. if page.get("flattr", "false") == "true":
  22. print "<script type='text/javascript'>"
  23. print "/* <![CDATA[ */"
  24. print "(function() {"
  25. print "var s = document.createElement('script');"
  26. print "var t = document.getElementsByTagName('script')[0];"
  27. print "s.type = 'text/javascript';"
  28. print "s.async = true;"
  29. print "s.src = '//api.flattr.com/js/0.6/load.js?mode=auto&uid=xythobuz&category=text';"
  30. print "t.parentNode.insertBefore(s, t);"
  31. print "})();"
  32. print "/* ]]> */"
  33. print "</script>"
  34. %-->
  35. </head>
  36. <body onload="sh_highlightDocument('/js/sh/', '.min.js');" style="font-size: 1.1em; font-family: 'Droid Sans', sans-serif;">
  37. <!--%
  38. if page.get("github", "") != "":
  39. # GitHub Fork-Me Ribbon
  40. print '<div class="github-fork-ribbon-wrapper right">'
  41. print '<div class="github-fork-ribbon"><a href="'
  42. print page.github
  43. print '">Fork me on GitHub</a></div></div>'
  44. %-->
  45. <div class="navbar">
  46. <div class="navbar-inner">
  47. <ul class="nav">
  48. <!--%
  49. mpages = [p for p in pages if p.get("parent", "") == "main" and p.lang == "en"]
  50. mpages.sort(key=lambda p: int(p["position"]))
  51. entry = '<li><a href="%s">%s</a></li>'
  52. newEntry = '<li class="dropdown"><a href="%s" class="dropdown-toggle" data-toggle="dropdown">%s<b class="caret"></b></a><ul class="dropdown-menu">'
  53. newEntry2 = '<li class="dropdown-submenu"><a href="%s" class="dropdown-toggle disabled" data-toggle="dropdown">%s</a><ul class="dropdown-menu">'
  54. for p in mpages:
  55. sub = [r for r in pages if r.get("parent", "") == p.url.replace("/", "").replace(".html", "") and r.lang == "en"]
  56. sub.sort(key=lambda r: int(r["position"]))
  57. if len(sub) > 0:
  58. print(newEntry % (htmlspecialchars(p["url"]), htmlspecialchars(p["title"])))
  59. for r in sub:
  60. subsub = [s for s in pages if s.get("parent", "") == r.url.replace("/", "").replace(".html", "") and s.lang == "en"]
  61. subsub.sort(key = lambda s: int(s["position"]))
  62. if len(subsub) > 0:
  63. print(newEntry2 % (htmlspecialchars(r["url"]), htmlspecialchars(r["title"])))
  64. for s in subsub:
  65. print(entry % (htmlspecialchars(s["url"]), htmlspecialchars(s["title"])))
  66. print("</ul>")
  67. else:
  68. print(entry % (htmlspecialchars(r["url"]), htmlspecialchars(r["title"])))
  69. print("</ul>")
  70. else:
  71. print(entry % (htmlspecialchars(p["url"]), htmlspecialchars(p["title"])))
  72. %-->
  73. <li class="divider-vertical"></li>
  74. <li><a href="http://xythobuz.de/lastmusic">♫</a></li>
  75. <li class="divider-vertical"></li>
  76. <!--%
  77. print '<li class="dropdown"><a href="language.html" class="dropdown-toggle" data-toggle="dropdown">Language<b class="caret"></b></a><ul class="dropdown-menu">'
  78. print " ".join(["<li><a href='%s'>%s</a></li>" % (url, lang) for lang, url in page["lang_links"].iteritems()]).replace(">en<", ">English<").replace(">de<", ">Deutsch<")
  79. print "</ul></li>"
  80. print ''
  81. %-->
  82. <li class="divider-vertical"></li>
  83. <script type="text/javascript">
  84. function sitesearch(curobj) {
  85. curobj.q.value = "site:xythobuz.de " + curobj.r.value
  86. }
  87. </script>
  88. <form class="navbar-search" action="http://www.google.com/search" method="get" onSubmit="sitesearch(this)">
  89. <input name="q" type="hidden" />
  90. <input name="r" type="text" class="search-query span2" placeholder="Search..." />
  91. </form>
  92. </ul>
  93. </div>
  94. </div>
  95. <div style="width: 75%; margin-left: auto; margin-right: auto;">
  96. {{ __content__ }}
  97. <!--%
  98. import sys
  99. # Flattr Button
  100. if page.get("flattr", "false") == "true":
  101. print '<span id="flattr">'
  102. sys.stdout.write('<a class="FlattrButton" href="')
  103. sys.stdout.write(BASE_URL)
  104. sys.stdout.write('/')
  105. sys.stdout.write(page.url)
  106. sys.stdout.write('" title="')
  107. sys.stdout.write(htmlspecialchars(page.title))
  108. sys.stdout.write('">')
  109. sys.stdout.write(htmlspecialchars(page.get("description", page.title)))
  110. sys.stdout.write("</a>\n")
  111. print '</span>'
  112. # Twitter Button
  113. if page.get("twitter", "") != "":
  114. print '<span id="twitter">'
  115. sys.stdout.write('<a href="https://twitter.com/share" class="twitter-share-buttdata-via="')
  116. sys.stdout.write(page.twitter)
  117. sys.stdout.write('" data-dnt="true" data-related="')
  118. sys.stdout.write(page.twitter)
  119. sys.stdout.write('" data-count="vertical">Tweet</a>')
  120. 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");')
  121. sys.stdout.write("</script>\n")
  122. print '</span>'
  123. # Reddit Button
  124. if page.get("reddit", "") != "":
  125. print '<span id="reddit">'
  126. sys.stdout.write('<script type="text/javascript">reddit_url = "')
  127. if (page.reddit == "true"):
  128. sys.stdout.write(BASE_URL)
  129. sys.stdout.write('/')
  130. sys.stdout.write(page.url)
  131. else:
  132. sys.stdout.write(page.reddit)
  133. sys.stdout.write('";</script>')
  134. sys.stdout.write("\n")
  135. sys.stdout.write('<script type="text/javascript" src="http://www.redcom/static/button/button2.js"></script>')
  136. sys.stdout.write("\n")
  137. print '</span>'
  138. # GitHub Fork Button
  139. if page.get("github", "") != "":
  140. print '<span id="github">'
  141. sys.stdout.write('<a href="')
  142. sys.stdout.write(page.github)
  143. sys.stdout.write('" class="gitforked-button gitforked-forks gitforked-watchers"></a>')
  144. sys.stdout.write("\n")
  145. print '</span>'
  146. if page.get("print", "false") == "true":
  147. print """<div id="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></div>"""
  148. if page.get("comments", "false") == "true":
  149. print '<div id="disqus_thread"></div>'
  150. print '<script type="text/javascript">'
  151. print 'var disqus_shortname = "xythobuz";'
  152. print '(function() {'
  153. print 'var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;'
  154. print 'dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";'
  155. print '(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0] ).appendChild(dsq);'
  156. print '})();'
  157. print '</script>'
  158. print '<noscript>Please enable JavaScript to view the <a href="http://disqus. com/?ref_noscript">comments powered by Disqus.</a></noscript>'
  159. print '<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>'
  160. elif page.get("comments", "false") != "false":
  161. print '<p><a href="%s">Head over here to discuss this article!</a></p>' % page.get("comments", "false")
  162. %-->
  163. </div>
  164. <div style="color: gray; text-align: center;">
  165. Built with <a href="http://bitbucket.org/obensonne/poole">Poole</a>
  166. &middot;
  167. Made with <a href="http://twitter.github.io/bootstrap/index.html">Bootstrap</a>
  168. &middot;
  169. Using <a href="http://shjs.sourceforge.net">SHJS</a>
  170. &middot;
  171. Licensed as <a href="http://creativecommons.org/licenses/by/3.0">CC-BY</a>
  172. </div>
  173. <img src="http://xythobuz.de/stats/count.php?img" alt="Analytics">
  174. <script src="http://gitforked.com/api/1.1/button.js" type="text/javascript"></script>
  175. <script type="text/javascript">
  176. var _gaq = _gaq || [];
  177. _gaq.push(['_setAccount', 'UA-39163591-1']);
  178. _gaq.push(['_setDomainName', 'xythobuz.org']);
  179. _gaq.push(['_setAllowLinker', true]);
  180. _gaq.push(['_trackPageview']);
  181. setTimeout("_gaq.push(['_trackEvent', '30_seconds', 'read'])", 30000);
  182. (function() {
  183. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  184. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  185. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  186. })();
  187. </script>
  188. </body>
  189. </html>