| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <title>kevinschoon-dot-com</title> |
| 5 | <meta charset="UTF-8"> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 7 | <link rel="stylesheet" href="/main.css"/> |
| 8 | <link rel="alternate" type="application/rss+xml" title="RSS" href="https://kevinschoon.com/index.xml"> |
| 9 | </head> |
| 10 | <body> |
| 11 | <section> |
| 12 | <div class="wrapper"> |
| 13 | <header class="page-header"> |
| 14 | {% if not link == "/" %}<a href="/">Home</a>{% endif %} |
| 15 | </header> |
| 16 | <main class="page-body"> |
| 17 | {{ content }} |
| 18 | </main> |
| 19 | <footer class="page-footer"></footer> |
| 20 | </div> |
| 21 | </section> |
| 22 | </body> |
| 23 | {% if devmode %} |
| 24 | <script> |
| 25 | const socket = new WebSocket("{{devmode_websocket_addr}}") |
| 26 | socket.addEventListener("open", (event) => { |
| 27 | console.log("connected to server", event); |
| 28 | }); |
| 29 | socket.addEventListener("message", (event) => { |
| 30 | console.log("reloading page", event); |
| 31 | window.location.reload(); |
| 32 | }) |
| 33 | </script> |
| 34 | {% endif %} |
| 35 | </html> |