]> Witch of Git - web/blog/blob - _includes/layouts/layout.njk
Make more mobile-friendly
[web/blog] / _includes / layouts / layout.njk
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="utf8">
5 <meta property="og:type" content="website">
6 {% if title %}
7 <title>Witch of Light - {{ title }}</title>
8 <meta property="og:title" content="Witch of Light - {{ title }}">
9 <meta property="twitter:title" content="Witch of Light - {{ title }}">
10 {% else %}
11 <title>Witch of Light</title>
12 <meta property="og:title" content="Witch of Light">
13 <meta property="twitter:title" content="Witch of Light">
14 {% endif %}
15 {% if summary %}
16 <meta name="description" content="{{ summary }}">
17 <meta property="og:description" content="{{ summary }}">
18 <meta property="twitter:description" content="{{ summary }}">
19 {% else %}
20 <meta name="description" content="A collection of Cassie's harebrained schemes">
21 <meta property="og:description" content="A collection of Cassie's harebrained schemes">
22 <meta property="twitter:description" content="A collection of Cassie's harebrained schemes">
23 {% endif %}
24 <meta property="og:url" content="https://blog.witchoflight.com">
25 <meta property="og:site_name" content="Witch of Light">
26 <meta property="og:image" content="https://www.witchoflight.com/assets/light.jpg">
27 <meta property="og:image:type" content="image/png">
28 <meta property="og:image:width" content="900">
29 <meta property="og:image:height" content="900">
30 <meta property="og:image:alt" content="The Homestuck light aspect icon">
31 <meta name="twitter:card" content="summary">
32 <meta name="twitter:site" content="@porglezomp">
33 <meta name="twitter:creator" content="@porglezomp">
34 <meta name="twitter:image" content="https://www.witchoflight.com/assets/light.png">
35 <meta name="viewport" content="width=device-width, initial-scale=1.0">
36 <style>
37 * { box-sizing: border-box; }
38 html { font-size: 1.4em; line-height: 1.5; color: #444; }
39 body { padding: 1em; max-width: 700px; margin: 0 auto; min-height: 100vh; }
40 body header { margin-bottom: 1em; }
41 body footer { margin-top: 1em; }
42 h1 { margin: 0; }
43 h1, h2, h3, h4, h5, h6 { margin-bottom: 0; }
44 blockquote { border-left: solid 10px #bbb; padding-left: 1em; margin-left: 1em; font-style: italic; }
45 .c-sun { color: #f78123; }
46 .dec-none { text-decoration: none; }
47 .dim { color: #777; }
48 .flex-center { justify-content: center; }
49 .row { display: flex; flex-direction: row; }
50 .col { display: flex; flex-direction: column; }
51 .hgroup { display: flex; flex-direction: row; }
52 @media (max-width: 500px) { .hgroup { flex-direction: column; } }
53 .baseline { align-items: baseline; }
54 .spacer { flex-grow: 1; }
55 .ls-none { list-style: none; padding: 0; margin: 0; }
56 </style>
57 <link rel="stylesheet" type="text/css" href="/static/prism.css">
58 </head>
59 <body class="col">
60 <header>
61 <div class="hgroup baseline">
62 <h1><a class="c-sun dec-none" href="/">Witch of Light</a></h1>
63 <div class="spacer"></div>
64 <div class="row" style="margin-top: -0.6em">
65 <a class="c-sun" href="/archive">Archive</a>
66 &nbsp;&nbsp;
67 <a class="c-sun" href="/feed.xml">RSS</a>
68 </div>
69 </div>
70 <i class="dim">A collection of Cassie's harebrained schemes.</i>
71 </header>
72 {{ content | safe }}
73 <div class="spacer"></div>
74 <footer class="row flex-center">
75 Copyright &copy; 2019 Cassie Jones.
76 - <a href="https://twitter.com/porglezomp">@porglezomp</a>
77 </footer>
78 </body>
79 </html>