123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <!DOCTYPE html>
- <!--%
- if page.get("lang", "en") == "de":
- print '<html lang="de">'
- else:
- print '<html lang="en">'
- %-->
- <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="xythobuz.de" href="rss.xml" />
- <link type="text/css" rel="stylesheet" href="css/style.css" />
- <link type="text/css" rel="stylesheet" href="css/print.css" media="print" />
- <link type="text/css" rel="stylesheet" href="css/gh-fork-ribbon.css" />
- <link type="text/css" rel="stylesheet" href="css/lightgallery.min.css" />
- <script type="text/javascript" src="js/sh_main.js"></script>
- </head>
- <body onload="sh_highlightDocument('/js/sh/', '.min.js');">
- <!--%
- link = ""
-
- if page.get("github", "") != "":
- link = page.github
- if page.get("git", "") != "":
- link = page.git
-
- if link != "":
- # GitHub Fork-Me Ribbon
- print '<div class="github-fork-ribbon-wrapper right-bottom">'
- print '<div class="github-fork-ribbon"><a href="'
- print link
- print '">Fork this with Git</a></div></div>'
- %-->
- <div id="wrap"><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>-</li>
- <li><a href="https://git.xythobuz.de/explore/repos">Gitea</a></li>
- <li><a href="https://github.com/xythobuz">GitHub</a></li>
- <li><a href="printer.html">🔨</a></li>
- <div class="fonts">
- <li><span class="font-big">Text:</span></li>
- <li><a class="dec" href="#"><span class="font-big">A</span><span class="font-small">A</span></a></li>
- <li><a class="reset" href="#"><span class="font-big">A</span><span class="font-big">A</span></a></li>
- <li><a class="inc" href="#"><span class="font-small">A</span><span class="font-big">A</span></a></li>
- </div>
- <!--%
- 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>
- <div id="content">
- <!--%
- from datetime import datetime
-
- if page.get("noheader", "false") == "false":
- if page.get("title", "") == "Blog":
- print "<h1>%s</h1>" % (page.get("post", ""))
- else:
- if page.get("lang", "en") == "de":
- print "<h1>%s</h1>" % (page.get("title_de", ""))
- else:
- print "<h1>%s</h1>" % (page.get("title", ""))
-
- if page.get("date", "") != "":
- if page.get("title", "") == "Blog":
- if page.get("lang", "en") == "de":
- date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%d.%m.%Y")
- print "<i>Veröffentlicht am %s.</i>" % date
- else:
- date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%B %d, %Y")
- print "<i>Published on %s.</i>" % date
- else:
- if page.get("lang", "en") == "de":
- date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%d.%m.%Y")
- print "<i>Projekt gestartet am %s.</i>" % date
- else:
- date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%B %d, %Y")
- print "<i>Project started on %s.</i>" % date
-
- if page.get("date", "") != "" and page.get("update", "") != "":
- print "<br>"
-
- if page.get("update", "") != "":
- if page.get("lang", "en") == "de":
- date = datetime.strptime(page["update"], "%Y-%m-%d").strftime("%d.%m.%Y")
- print "<i>Zuletzt aktualisiert am %s.</i>" % date
- else:
- date = datetime.strptime(page["update"], "%Y-%m-%d").strftime("%B %d, %Y")
- print "<i>Last updated on %s.</i>" % date
-
- link = githubCommitBadge(page)
- if len(link) > 0:
- print "<p>Recent activity on GitHub: " + link + "</p>"
- %-->
- {{ __content__ }}
- <hr>
- <!--%
- # Disqus Comments (only show button to load afterwards)
- if page.get("comments", "false") == "true":
- print '<div style="text-align: center;">'
- print '<button class="show-comments">Load Disqus comments</button>'
- print '<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>'
- print '</div>'
- print '<div id="disqus_thread"></div>'
- print '<hr>'
- elif page.get("comments", "false") != "false":
- print '<div style="text-align: center;"><a href="%s">Head over here to discuss this article!</a></div>' % page.get("comments", "false")
- print '<hr>'
- %-->
- </div>
- <div id="footer">
- <a href="https://hg.sr.ht/~obensonne/poole">Poole</a>
- ·
- <a href="http://shjs.sourceforge.net">SHJS</a>
- ·
- <a href="https://github.com/sachinchoolur/lightGallery">lightGallery</a>
- ·
- <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC-BY</a>
- ·
- <a href="https://github.com/sponsors/xythobuz">GitHub Sponsors</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>
- ·
- <a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_send-money&nav=1&email=xythobuz@me.com">PayPal</a>
- </div>
- <script type="text/javascript" src="js/jquery.min.js"></script>
- <!--%
- # Dynamically load Disqus comments after user requested it
- if page.get("comments", "false") == "true":
- 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 '$(document).ready(function() {'
- print '$(".show-comments").on("click", function(){'
- 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 '$(this).fadeOut();'
- print '});'
- print '});'
- print '</script>'
- %-->
- <script type="text/javascript">
- $(document).ready(function() {
- jQuery(window).resize(function() {
- $('#wrap').css('height', $('#nav').css('height'));
- });
-
- var fontSize = parseInt($('body').css('font-size'), 10);
- var initialFontSize = fontSize;
-
- $('.inc').on('click', function() {
- fontSize += 1;
- $('#content').css('font-size', fontSize + 'px');
- })
- $('.dec').on('click', function() {
- if (fontSize > 1) {
- fontSize -= 1;
- $('#content').css('font-size', fontSize + 'px');
- }
- })
- $('.reset').on('click', function() {
- if (fontSize != initialFontSize) {
- fontSize = initialFontSize;
- $('#content').css('font-size', initialFontSize + 'px');
- }
- })
-
- $(document).keypress(function(event) {
- if (event.charCode == '+'.charCodeAt(0)) {
- fontSize += 1;
- $('#content').css('font-size', fontSize + 'px');
- }
- if (event.charCode == '-'.charCodeAt(0)) {
- if (fontSize > 1) {
- fontSize -= 1;
- $('#content').css('font-size', fontSize + 'px');
- }
- }
- if (event.charCode == '0'.charCodeAt(0)) {
- if (fontSize != initialFontSize) {
- fontSize = initialFontSize;
- $('#content').css('font-size', initialFontSize + 'px');
- }
- }
- });
- })
- </script>
- <script type="text/javascript" src="js/jquery.mousewheel.min.js"></script>
- <script type="text/javascript" src="js/lightgallery-all.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- var lg = document.getElementsByClassName("lightgallery");
- for (var i = 0; i < lg.length; i++) {
- var settings = {
- loadYoutubeThumbnail: true,
- youtubeThumbSize: 'mqdefault',
- loadVimeoThumbnail: true,
- vimeoThumbSize: 'thumbnail_medium',
- youtubePlayerParams: {
- modestbranding: 1,
- showinfo: 0,
- rel: 0
- },
- vimeoPlayerParams: {
- byline: 0,
- portrait: 0
- },
- thumbnail:true,
- animateThumb: true,
- showThumbByDefault: false,
- galleryId: i
- };
- var d = lg.item(i);
- if ($(d).find(".border").length > 0) {
- settings.selector = '.border';
- }
- $(d).lightGallery(settings);
- }
- });
- </script>
- <script>
- (function(f, a, t, h, o, m){
- a[h]=a[h]||function(){
- (a[h].q=a[h].q||[]).push(arguments)
- };
- o=f.createElement('script'),
- m=f.getElementsByTagName('script')[0];
- o.async=1; o.src=t; o.id='fathom-script';
- m.parentNode.insertBefore(o,m)
- })(document, window, '//stats.xythobuz.de/tracker.js', 'fathom');
- fathom('set', 'siteId', 'APYRK');
- fathom('trackPageview');
- </script>
- </body>
- </html>
|