templates/layout.html
{{define "layout"}} <!doctype html> <html> <head> <style> #main, #header, aside, img { max-width: 444px; margin: 0 auto; padding: 0; } nav ul { list-style: none; padding: 0; margin: 0 45px 30px 0; float: left; } .grayscale { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); filter: grayscale(100%); } </style> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>{{template "title"}}</title> <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22><text y=%2226%22 font-size=%2226%22>🐈⬛</text></svg>"> </head> <div id="main"><body class="grayscale"> <h1><a href="/"><img src="/static/scrombles.png" alt="scrombles the cat"></a> jes shit hell</h1> <p> <a href="/now.html">now</a> <a href="/about.html">about</a> <a href="/reviews.html">reviews</a> <a href="/ideas.html">ideas</a> <a href="/git.html">git</a> | <a href="https://write.as/j3s">bl0g -></a> <a href="https://snap.as/j3s">pics -></a> </p> <hr> {{template "body" .}} </div></body> </html> {{end}}