123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="{{ htmlspecialchars(__encoding__) }}" />
- <title>{{ htmlspecialchars(page.title) }} - xythobuz.de</title>
- <meta name="description" content="{{ htmlspecialchars(page.get("description", "Electronics & Software Projects")) }}" />
- <meta name="keywords" content="{{ htmlspecialchars(page.get("keywords", "xythobuz")) }}" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="author" href="xythobuz@xythobuz.de">
- <link rel="shortcut icon" href="img/favicon.ico">
- <link rel="alternate" type="application/rss+xml" title="Blog" href="rss.xml">
- <link type="text/css" rel="stylesheet" href="css/style.css" />
- <link type="text/css" rel="stylesheet" href="css/sh_bright.min.css" />
- <link type="text/css" rel="stylesheet" href="css/gh-fork-ribbon.css" />
- <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Sans:400,700">
- <script type="text/javascript" src="js/sh_main.js"></script>
- <script type="text/javascript" src="yoxview/yoxview-init.js"></script>
- <!--%
- if page.get("flattr", "false") == "true":
- print "<script type='text/javascript'>"
- print "/* <![CDATA[ */"
- print "(function() {"
- print "var s = document.createElement('script');"
- print "var t = document.getElementsByTagName('script')[0];"
- print "s.type = 'text/javascript';"
- print "s.async = true;"
- print "s.src = '//api.flattr.com/js/0.6/load.js?mode=auto&uid=xythobuz&category=text';"
- print "t.parentNode.insertBefore(s, t);"
- print "})();"
- print "/* ]]> */"
- print "</script>"
- %-->
- </head>
- <body onload="sh_highlightDocument('/js/sh/', '.min.js');">
- <!--%
- if page.get("github", "") != "":
- # GitHub Fork-Me Ribbon
- print '<div class="github-fork-ribbon-wrapper right fixed">'
- print '<div class="github-fork-ribbon"><a href="'
- print page.github
- print '">Fork me on GitHub</a></div></div>'
- %-->
- <div id="nav">
- <ul>
- <li id="home"><a href="index.html">xythobuz.de</a></li>
- <!--%
- mpages = [p for p in pages if p.get("parent", "") == "main" and p.lang == "en"]
- mpages.sort(key=lambda p: int(p["position"]))
- entry = '<li><a href="%s">%s</a></li>'
- for p in mpages[1:]:
- print(entry % (htmlspecialchars(p["url"]), htmlspecialchars(p["title"])))
- %-->
- <li><a href="http://xythobuz.de/git/">Git</a></li>
- <li><a href="http://xythobuz.de/lastmusic">♫</a></li>
- <!--%
- tmp = [p for p in page["lang_links"].iteritems()]
- if len(tmp) > 1:
- print '<li>'
- 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"><')
- print "</li>"
- %-->
- </ul>
- </div>
- <div style="width: 75%; margin-left: auto; margin-right: auto;">
- {{ __content__ }}
- <!--%
- import sys
-
- # Centered DIV
- if page.get("flattr", "false") == "true" or page.get("twitter", "") != "" or page.get("reddit", "") != "" or page.get("github", "") != "" or page.get("print", "false") == "true":
- print '<div style="margin-top: 1em; text-align: center;">'
-
- # Print and PDF Buttons
- if page.get("print", "false") == "true":
- 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>"""
-
- # Flattr Button
- if page.get("flattr", "false") == "true":
- print '<span id="flattr">'
- sys.stdout.write('<a class="FlattrButton" href="')
- sys.stdout.write(BASE_URL)
- sys.stdout.write('/')
- sys.stdout.write(page.url)
- sys.stdout.write('" title="')
- sys.stdout.write(htmlspecialchars(page.title))
- sys.stdout.write('" data-flattr-button="compact">')
- sys.stdout.write(htmlspecialchars(page.get("description", page.title)))
- sys.stdout.write("</a>\n")
- print '</span>'
-
- # Twitter Button
- if page.get("twitter", "") != "":
- print '<span id="twitter">'
- sys.stdout.write('<a href="https://twitter.com/share" class="twitter-share-buttdata-via="')
- sys.stdout.write(page.twitter)
- sys.stdout.write('" data-dnt="true" data-related="')
- sys.stdout.write(page.twitter)
- sys.stdout.write('" data-count="vertical">Tweet</a>')
- 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");')
- sys.stdout.write("</script>\n")
- print '</span>'
-
- # Reddit Button
- if page.get("reddit", "") != "":
- print '<span id="reddit">'
- sys.stdout.write('<script type="text/javascript">reddit_url = "')
- if (page.reddit == "true"):
- sys.stdout.write(BASE_URL)
- sys.stdout.write('/')
- sys.stdout.write(page.url)
- else:
- sys.stdout.write(page.reddit)
- sys.stdout.write('";</script>')
- sys.stdout.write("\n")
- sys.stdout.write('<script type="text/javascript" src="http://www.redcom/static/button/button2.js"></script>')
- sys.stdout.write("\n")
- print '</span>'
-
- # GitHub Fork Button. Place this last!
- #if page.get("github", "") != "":
- # print '<span id="github">'
- # sys.stdout.write('<a href="')
- # sys.stdout.write(page.github)
- # sys.stdout.write('" class="gitforked-button gitforked-forks gitforked-watchers"></a>')
- # sys.stdout.write("\n")
- # print '</span>'
-
- # Close DIV, horizontal line when no comments
- if page.get("flattr", "false") == "true" or page.get("twitter", "") != "" or page.get("reddit", "") != "" or page.get("github", "") != "" or page.get("print", "false") == "true":
- print '</div>'
-
- # Disqus Comments
- if page.get("comments", "false") == "true":
- print '<div id="disqus_thread"></div>'
- print '<script type="text/javascript">'
- print 'var disqus_shortname = "xythobuz";'
- print 'var disqus_identifier = "http://xythobuz.org/' + page["url"] + '";'
- print 'var disqus_url = "http://xythobuz.org/' + page["url"] + '";'
- print '(function() {'
- print 'var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;'
- print 'dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";'
- print '(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0] ).appendChild(dsq);'
- print '})();'
- print '</script>'
- print '<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>'
- print '<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>'
- elif page.get("comments", "false") != "false":
- print '<p><a href="%s">Head over here to discuss this article!</a></p>' % page.get("comments", "false")
- %-->
- </div>
-
- <div id="footer">
- <a href="http://bitbucket.org/obensonne/poole">Poole</a>
- ·
- <a href="http://shjs.sourceforge.net">SHJS</a>
- ·
- <a href="http://www.yoxigen.com/yoxview/">YoxView</a>
- ·
- <a rel="license" href="http://creativecommons.org/licenses/by/3.0/de/deed.en">CC-BY</a>
- ·
- <a href="http://www.amazon.de/?_encoding=UTF8&camp=1638&creative=19454&linkCode=ur2&site-redirect=de&tag=xythobuzorg-21">Amazon.de Affiliate</a>
- </div>
- <img src="http://xythobuz.de/stats/count.php?img" alt="Analytics">
- <!-- Piwik -->
- <script type="text/javascript">
- var _paq = _paq || [];
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
- (function() {
- var u=(("https:" == document.location.protocol) ? "https" : "http") + "://xythobuz.de/piwik/";
- _paq.push(['setTrackerUrl', u+'piwik.php']);
- _paq.push(['setSiteId', 1]);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
- g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
- })();
- </script>
- <noscript><p><img src="http://xythobuz.de/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
- <!-- End Piwik Code -->
- </body>
- </html>
|