Browse Source

Update for new webserver

Thomas Buck 5 years ago
parent
commit
f155ecf382
5 changed files with 34 additions and 36 deletions
  1. 3
    3
      input/projects.md
  2. 4
    4
      input/unlisted/printer.md
  3. 3
    3
      input/unlisted/xycontrol.md
  4. 5
    5
      macros.py
  5. 19
    21
      page.html

+ 3
- 3
input/projects.md View File

@@ -17,8 +17,8 @@ for p in mpages:
17 17
 
18 18
 ### Abandoned Projects
19 19
 
20
- * **[avrNetStack](http://xythobuz.de/avrnetstack.html)**
21
- * **[xyControl](http://xythobuz.de/xycontrol.html)**
22
- * **[BaconBar](http://xythobuz.de/baconbar/)** Reddit Client ([Softpedia Review](http://mac.softpedia.com/get/Internet-Utilities/BaconBar.shtml))
20
+ * **[avrNetStack](avrnetstack.html)**
21
+ * **[xyControl](xycontrol.html)**
22
+ * **[BaconBar](baconbar)** Reddit Client ([Softpedia Review](http://mac.softpedia.com/get/Internet-Utilities/BaconBar.shtml))
23 23
  * **[OpenRaider](https://github.com/xythobuz/OpenRaider)** Free and Open Source classic Tomb Raider game engine
24 24
 

+ 4
- 4
input/unlisted/printer.md View File

@@ -29,12 +29,12 @@ This page contains photos from the Webcams on my 3D printers, live-updated every
29 29
 
30 30
 <div id="date-1">
31 31
     <noscript>
32
-        <img src="//xythobuz.de/printer.jpg" alt="Fabrikator Mini V1.5">
32
+        <img src="printer.jpg" alt="Fabrikator Mini V1.5">
33 33
     </noscript>
34 34
 </div>
35 35
 
36 36
 <script type="text/javascript">
37
-    var rt = LastModUsingHeader("//xythobuz.de/printer.jpg", function(i, u) {
37
+    var rt = LastModUsingHeader("printer.jpg", function(i, u) {
38 38
         var img = document.createElement("img");
39 39
         img.src = window.URL.createObjectURL(i);
40 40
         img.alt = "Fabrikator Mini V1.5";
@@ -54,12 +54,12 @@ This page contains photos from the Webcams on my 3D printers, live-updated every
54 54
 
55 55
 <div id="date-2">
56 56
     <noscript>
57
-        <img style="transform: rotate(180deg);" src="//xythobuz.de/printer-2.jpg" alt="CTC i3 Pro B">
57
+        <img style="transform: rotate(180deg);" src="printer-2.jpg" alt="CTC i3 Pro B">
58 58
     </noscript>
59 59
 </div>
60 60
 
61 61
 <script type="text/javascript">
62
-    var rt = LastModUsingHeader("//xythobuz.de/printer-2.jpg", function(i, u) {
62
+    var rt = LastModUsingHeader("printer-2.jpg", function(i, u) {
63 63
         var img = document.createElement("img");
64 64
         img.src = window.URL.createObjectURL(i);
65 65
         img.alt = "CTC i3 Pro B";

+ 3
- 3
input/unlisted/xycontrol.md View File

@@ -84,14 +84,14 @@ Everything else is released under a BSD-Style license. See the [accompanying COP
84 84
  [xy1]: img/xycontrol1.jpg
85 85
  [xy2s]: img/xycontrol2_small.jpg
86 86
  [xy2]: img/xycontrol2.jpg
87
- [gh]: http://www.xythobuz.de/xycontrol/
88
- [logo]: http://www.xythobuz.de/xycontrol/logo.png
87
+ [gh]: xycontrol
88
+ [logo]: xycontrol/logo.png
89 89
  [adafruit]: https://github.com/adafruit/Adafruit_L3GD20
90 90
  [pololucode]: https://github.com/pololu/LSM303
91 91
  [pololu]: http://www.pololu.com/catalog/product/1268
92 92
  [ctrl]: http://www.mikrokopter.de/ucwiki/en/BL-Ctrl_V1.2
93 93
  [mot]: http://www.conrad.de/ce/de/product/231867
94
- [bt]: http://xythobuz.de/bluetooth.html
94
+ [bt]: bluetooth.html
95 95
  [kalman]: http://www.linushelgesson.se/2012/04/pitch-and-roll-estimating-kalman-filter-for-stabilizing-quadrocopters/
96 96
  [fleury]: http://homepage.hispeed.ch/peterfleury/avr-software.html
97 97
  [gpl]: http://www.gnu.org/licenses/gpl.html

+ 5
- 5
macros.py View File

@@ -7,7 +7,7 @@ import codecs
7 7
 from datetime import datetime
8 8
 
9 9
 DEFAULT_LANG = "en"
10
-BASE_URL = "http://www.xythobuz.de"
10
+BASE_URL = "https://www.xythobuz.de"
11 11
 
12 12
 # -----------------------------------------------------------------------------
13 13
 # preconvert hooks
@@ -79,7 +79,7 @@ def hook_preconvert_compat():
79 79
     fp = open(os.path.join(options.project, "output", "index.php"), 'w')
80 80
     fp.write("<?\n")
81 81
     fp.write("// Auto generated xyCMS compatibility index.php\n")
82
-    fp.write("$loc = 'http://xythobuz.de/index.de.html';\n")
82
+    fp.write("$loc = 'https://www.xythobuz.de/index.de.html';\n")
83 83
     fp.write("if (isset($_GET['p'])) {\n")
84 84
     fp.write("    if (isset($_GET['lang'])) {\n")
85 85
     fp.write("        $_GET['p'] .= 'EN';\n")
@@ -90,7 +90,7 @@ def hook_preconvert_compat():
90 90
             tmp = p["compat"]
91 91
             if p.get("lang", DEFAULT_LANG) == DEFAULT_LANG:
92 92
                 tmp = tmp + "EN"
93
-            fp.write(_COMPAT % (tmp, "http://xythobuz.de", p.url))
93
+            fp.write(_COMPAT % (tmp, "https://www.xythobuz.de", p.url))
94 94
             fp.write("\n")
95 95
     fp.write(_COMPAT_404 % "/404.html")
96 96
     fp.write("    }\n")
@@ -211,7 +211,7 @@ def hook_postconvert_mobilecompat():
211 211
     fp = codecs.open(os.path.join(directory, "index.php"), "w", "utf-8")
212 212
     fp.write("<?\n")
213 213
     fp.write("// Auto generated xyCMS compatibility mobile/index.php\n")
214
-    fp.write("$loc = 'http://www.xythobuz.de/index.de.html';\n")
214
+    fp.write("$loc = 'https://www.xythobuz.de/index.de.html';\n")
215 215
     fp.write("if (isset($_GET['p'])) {\n")
216 216
     fp.write("    if (isset($_GET['lang'])) {\n")
217 217
     fp.write("        $_GET['p'] .= 'EN';\n")
@@ -222,7 +222,7 @@ def hook_postconvert_mobilecompat():
222 222
             tmp = p["compat"]
223 223
             if p.get("lang", DEFAULT_LANG) == DEFAULT_LANG:
224 224
                 tmp = tmp + "EN"
225
-            fp.write(_COMPAT_MOB % (tmp, "http://xythobuz.de", re.sub(".html", ".html", p.url)))
225
+            fp.write(_COMPAT_MOB % (tmp, "https://www.xythobuz.de", re.sub(".html", ".html", p.url)))
226 226
             fp.write("\n")
227 227
     fp.write(_COMPAT_404_MOB % "/404.mob.html")
228 228
     fp.write("    }\n")

+ 19
- 21
page.html View File

@@ -12,7 +12,7 @@
12 12
     <link type="text/css" rel="stylesheet" href="css/style.css" />
13 13
     <link type="text/css" rel="stylesheet" href="css/sh_bright.min.css" />
14 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">
15
+    <link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Droid+Sans:400,700">
16 16
     <link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.2.18/css/lightgallery.min.css" />
17 17
     <script type="text/javascript" src="js/sh_main.js"></script>
18 18
     <!--%
@@ -51,9 +51,9 @@
51 51
                     print(entry % (htmlspecialchars(p["url"]), htmlspecialchars(p["title"])))
52 52
             %-->
53 53
             <li><a href="https://github.com/xythobuz">GitHub</a></li>
54
-            <li><a href="http://xythobuz.de/git/">Git</a></li>
55
-            <li><a href="http://xythobuz.de/lastmusic">🎵</a></li>
56
-            <li><a href="http://xythobuz.de/printer.html">🔨</a></li>
54
+            <li><a href="https://git.xythobuz.de/explore/repos">Git</a></li>
55
+            <li><a href="lastmusic">🎵</a></li>
56
+            <li><a href="printer.html">🔨</a></li>
57 57
             <div class="fonts">
58 58
                 <li><span class="font-big">Text:</span></li>
59 59
                 <li><a class="dec" href="#"><span class="font-big">A</span><span class="font-small">A</span></a></li>
@@ -169,22 +169,20 @@
169 169
             $(".lightgallery").lightGallery(); 
170 170
         });
171 171
     </script>
172
-    <img src="http://xythobuz.de/stats/count.php?img" alt="Analytics">
173
-    <!-- Piwik -->
174
-    <script type="text/javascript">
175
-      var _paq = _paq || [];
176
-      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
177
-      _paq.push(['trackPageView']);
178
-      _paq.push(['enableLinkTracking']);
179
-      (function() {
180
-        var u="//xythobuz.de/piwik/";
181
-        _paq.push(['setTrackerUrl', u+'piwik.php']);
182
-        _paq.push(['setSiteId', '1']);
183
-        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
184
-        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
185
-      })();
186
-    </script>
187
-    <noscript><p><img src="//xythobuz.de/piwik/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
188
-    <!-- End Piwik Code -->
172
+    <!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
173
+    <script>
174
+        (function(f, a, t, h, o, m){
175
+            a[h]=a[h]||function(){
176
+                (a[h].q=a[h].q||[]).push(arguments)
177
+        	};
178
+			o=f.createElement('script'),
179
+			m=f.getElementsByTagName('script')[0];
180
+			o.async=1; o.src=t; o.id='fathom-script';
181
+			m.parentNode.insertBefore(o,m)
182
+		})(document, window, '//stats.xythobuz.de/tracker.js', 'fathom');
183
+		fathom('set', 'siteId', 'APYRK');
184
+		fathom('trackPageview');
185
+	</script>
186
+	<!-- / Fathom -->
189 187
 </body>
190 188
 </html>

Loading…
Cancel
Save