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 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. <!--%
  18. if page.get("flattr", "false") == "true":
  19. print "<script type='text/javascript'>"
  20. print "/* <![CDATA[ */"
  21. print "(function() {"
  22. print "var s = document.createElement('script');"
  23. print "var t = document.getElementsByTagName('script')[0];"
  24. print "s.type = 'text/javascript';"
  25. print "s.async = true;"
  26. print "s.src = '//api.flattr.com/js/0.6/load.js?mode=auto&uid=xythobuz&category=text';"
  27. print "t.parentNode.insertBefore(s, t);"
  28. print "})();"
  29. print "/* ]]> */"
  30. print "</script>"
  31. %-->
  32. </head>
  33. <body onload="sh_highlightDocument('/js/sh/', '.min.js');">
  34. <!--%
  35. if page.get("github", "") != "":
  36. # GitHub Fork-Me Ribbon
  37. print '<div class="github-fork-ribbon-wrapper right fixed">'
  38. print '<div class="github-fork-ribbon"><a href="'
  39. print page.github
  40. print '">Fork me on GitHub</a></div></div>'
  41. %-->
  42. <div id="nav">
  43. <ul>
  44. <li id="home"><a href="index.html">xythobuz.de</a></li>
  45. <!--%
  46. mpages = [p for p in pages if p.get("parent", "") == "main" and p.lang == "en"]
  47. mpages.sort(key=lambda p: int(p["position"]))
  48. entry = '<li><a href="%s">%s</a></li>'
  49. for p in mpages[1:]:
  50. print(entry % (htmlspecialchars(p["url"]), htmlspecialchars(p["title"])))
  51. %-->
  52. <li><a href="http://xythobuz.de/lastmusic">♫</a></li>
  53. <!--%
  54. tmp = [p for p in page["lang_links"].iteritems()]
  55. if len(tmp) > 1:
  56. print '<li>'
  57. 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"><')
  58. print "</li>"
  59. %-->
  60. </ul>
  61. </div>
  62. <div style="width: 75%; margin-left: auto; margin-right: auto;">
  63. {{ __content__ }}
  64. <!--%
  65. import sys
  66. # Centered DIV
  67. if page.get("flattr", "false") == "true" or page.get("twitter", "") != "" or page.get("reddit", "") != "" or page.get("github", "") != "" or page.get("print", "false") == "true":
  68. print '<div style="margin-top: 1em; text-align: center;">'
  69. # Print and PDF Buttons
  70. if page.get("print", "false") == "true":
  71. 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>"""
  72. # Flattr Button
  73. if page.get("flattr", "false") == "true":
  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. # Twitter Button
  86. if page.get("twitter", "") != "":
  87. print '<span id="twitter">'
  88. sys.stdout.write('<a href="https://twitter.com/share" class="twitter-share-buttdata-via="')
  89. sys.stdout.write(page.twitter)
  90. sys.stdout.write('" data-dnt="true" data-related="')
  91. sys.stdout.write(page.twitter)
  92. sys.stdout.write('" data-count="vertical">Tweet</a>')
  93. 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");')
  94. sys.stdout.write("</script>\n")
  95. print '</span>'
  96. # Reddit Button
  97. if page.get("reddit", "") != "":
  98. print '<span id="reddit">'
  99. sys.stdout.write('<script type="text/javascript">reddit_url = "')
  100. if (page.reddit == "true"):
  101. sys.stdout.write(BASE_URL)
  102. sys.stdout.write('/')
  103. sys.stdout.write(page.url)
  104. else:
  105. sys.stdout.write(page.reddit)
  106. sys.stdout.write('";</script>')
  107. sys.stdout.write("\n")
  108. sys.stdout.write('<script type="text/javascript" src="http://www.redcom/static/button/button2.js"></script>')
  109. sys.stdout.write("\n")
  110. print '</span>'
  111. # GitHub Fork Button. Place this last!
  112. if page.get("github", "") != "":
  113. print '<span id="github">'
  114. sys.stdout.write('<a href="')
  115. sys.stdout.write(page.github)
  116. sys.stdout.write('" class="gitforked-button gitforked-forks gitforked-watchers"></a>')
  117. sys.stdout.write("\n")
  118. print '</span>'
  119. # Close DIV, horizontal line when no comments
  120. if page.get("flattr", "false") == "true" or page.get("twitter", "") != "" or page.get("reddit", "") != "" or page.get("github", "") != "" or page.get("print", "false") == "true":
  121. print '</div>'
  122. # Disqus Comments
  123. if page.get("comments", "false") == "true":
  124. print '<div id="disqus_thread"></div>'
  125. print '<script type="text/javascript">'
  126. print 'var disqus_shortname = "xythobuz";'
  127. print '(function() {'
  128. print 'var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;'
  129. print 'dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";'
  130. print '(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0] ).appendChild(dsq);'
  131. print '})();'
  132. print '</script>'
  133. print '<noscript>Please enable JavaScript to view the <a href="http://disqus. com/?ref_noscript">comments powered by Disqus.</a></noscript>'
  134. print '<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>'
  135. elif page.get("comments", "false") != "false":
  136. print '<p><a href="%s">Head over here to discuss this article!</a></p>' % page.get("comments", "false")
  137. %-->
  138. </div>
  139. <div id="footer">
  140. <a href="http://bitbucket.org/obensonne/poole">Poole</a>
  141. &middot;
  142. <a href="http://shjs.sourceforge.net">SHJS</a>
  143. &middot;
  144. <a href="http://creativecommons.org/licenses/by/3.0">CC-BY</a>
  145. </div>
  146. <img src="http://xythobuz.de/stats/count.php?img" alt="Analytics">
  147. <script src="http://gitforked.com/api/1.1/button.js" type="text/javascript"></script>
  148. </body>
  149. </html>