]> Witch of Git - web/blog/blob - _includes/layouts/layout.njk
Add some meta tags
[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 <style>
36 * { box-sizing: border-box; }
37 html { font-size: 1.4em; line-height: 1.5; color: #444; }
38 body { padding: 1em; max-width: 700px; margin: 0 auto; min-height: 100vh; }
39 body header { margin-bottom: 1em; }
40 body footer { margin-top: 1em; }
41 h1 { margin: 0; }
42 h1, h2, h3, h4, h5, h6 { margin-bottom: 0; }
43 blockquote { border-left: solid 10px #bbb; padding-left: 1em; margin-left: 1em; font-style: italic; }
44 .c-sun { color: #f78123; }
45 .dec-none { text-decoration: none; }
46 .dim { color: #777; }
47 .flex-center { justify-content: center; }
48 .row { display: flex; flex-direction: row; }
49 .col { display: flex; flex-direction: column; }
50 .baseline { align-items: baseline; }
51 .spacer { flex-grow: 1; }
52 .ls-none { list-style: none; padding: 0; margin: 0; }
53 </style>
54 <link rel="stylesheet" type="text/css" href="/static/prism.css">
55 </head>
56 <body class="col">
57 <header>
58 <div class="row baseline">
59 <h1><a class="c-sun dec-none" href="/">Witch of Light</a></h1>
60 <div class="spacer"></div>
61 <a class="c-sun" href="/archive">Archive</a>
62 &nbsp; &nbsp;
63 <a class="c-sun" href="/feed.xml">RSS</a>
64 </div>
65 <i class="dim">A collection of Cassie's harebrained schemes.</i>
66 </header>
67 {{ content | safe }}
68 <div class="spacer"></div>
69 <footer class="row flex-center">
70 Copyright &copy; 2019 Cassie Jones.
71 - <a href="https://twitter.com/porglezomp">@porglezomp</a>
72 </footer>
73 </body>
74 </html>