summaryrefslogtreecommitdiff
path: root/layouts/retired-2024-blog/baseof.html
blob: 7f504c4f32a7a037c9ecf14283c762dba8d8b5f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8">
    <title> {{ .Page.Title }}   </title>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <meta property="fediverse:creator" content="@mms@emacs.ch">
    <link rel="me" href="https://emacs.ch/@mms">
    
    {{- $header_rect := resources.Get "blog/logo/right.png" }}
    {{- $header_rect_180 := $header_rect.Resize "180x webp q90"}}
    <link rel="apple-touch-icon" sizes="180x180" href="{{ $header_rect_180.Permalink }}">
    
    {{- $header_rect_32 := $header_rect.Resize "32x webp q90"}}
    <link rel="icon" type="image/png" sizes="32x32" href="{{ $header_rect_32.Permalink }}">
    
    {{- $header_rect_16 := $header_rect.Resize "16x webp q90"}}
    <link rel="icon" type="image/png" sizes="16x16" href="{{ $header_rect_16.Permalink }}">
    
    <meta name="description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}">
    
    <meta property="og:title" content="{{ .Page.Title }}">
    <meta property="og:type" content="website">
    <meta property="og:url" content="{{ .Permalink }}">

        {{- $imageUrl := default "blog/logo/right.png" .Params.image }}
    {{- $image := resources.Get $imageUrl }}
    <meta property="og:image" content="{{ $image.Permalink }}">

    
    <meta property="og:description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}">
    
    <link rel="canonical" href="{{ .Permalink }}">
    <link rel='alternate' type='application/rss+xml' title="Feed with all changes" href='/index.xml'>
    <link rel='alternate' type='application/rss+xml' title="Feed with Unix History changes" href='/unix-history/index.xml'>
    <meta name="robots" content="index, follow">
    
    <link rel="webmention" href="https://webmention.io/d-s.sh/webmention">
    <link rel="pingback" href="https://webmention.io/d-s.sh/xmlrpc">
    
    <style>
      :root {
          --bg-color: #738276;
          --panel-color: #DBD7D2;
          --panel-meta-color: #C2BFBC;
          --text-color: #000;
          --cool-border: 4px groove #000;

          --hover-button-bg: #A8A4A0;
      }
      body {
          width: 800px;
          margin-left: auto;
          margin-right: auto;
          background-color: var(--bg-color);
          background-image: linear-gradient(0deg, #738276 25%, #4a524b 25%, #4a524b 50%, #738276 50%, #738276 75%, #4a524b 75%, #4a524b 100%);
          background-size: 8.00px 8.00px;
          color: var(--text-color);
          background-attachment: fixed;
          max-width: 98%;
          font-family: serif;
          font-size: 1.0em;
      }
      a {
          color: var(--text-color);
      }
      header {
          width: 100%;
          margin-top: 40px;
          margin-bottom: 20px;
          display: flex;
          align-items: stretch;
          flex-wrap: wrap;
      }
      
      header div, header nav   {
          border: 4px groove #000;
          display: inline-block;
          margin: 0;
          background-color: var(--panel-color);
      }
      
      .logo {
          width: 140px;
          border-right: 0;
          text-align: center;
      }

      .name {
          flex-grow: 1;
          border-left: 0;
          font-size: 2.5em;
          font-weight: bolder;

          display: flex;
          justify-content: center;
          align-items: center;
      }
      @media only screen and (max-width: 460px) {
          .logo {
              display: none;
          }
          .name {
              border-left: var(--cool-border);
          }
      }
      
      header nav {
          width: 150px;
          border: 0;
          display: flex;
          flex-direction: column;
      }
      
      header nav a {
          display: block;
          height: 22px;
          border: var(--cool-border);
          text-align: center;
          padding-right: 10px;
          flex-grow: 1;
          background-color: var(--panel-color);
          border-left: 0;
          border-bottom: 0;
          padding: 5px;
          
      }
      header nav a:hover {
          border-style: inset;
          background-color: var(--hover-button-bg);
      }
      header nav a:last-of-type {
          border-bottom: var(--cool-border);
      }
      
      @media only screen and (max-width: 700px) {
          header {
              height: auto;
          }
          
          header nav {
              flex-basis: 100%;
              border-top: 0;
              border-bottom: 0;

              flex-direction: row;
          }
          header nav a {
              border: var(--cool-border);
              border-top: 0;
              border-right: 0;
          }

          header nav a:last-of-type {
              border-right: var(--cool-border);
          }
      }
      
      article {
          border: var(--cool-border);
          margin-bottom: 20px;
          padding: 20px;
          background-color: var(--panel-color);;
          padding-bottom: 0;
          padding-top: 0;
          text-align: justify;
          display: flow-root;
      }
      aside.post-meta {
         margin-left: -20px;
         margin-right: -20px;
      border-top: var(--cool-border);
      padding-left: 20px;
      padding-right: 20px;
      padding-top: 5px;
      padding-bottom: 5px;
      background-color: var(--panel-meta-color);
      }

      h2 {
        margin-bottom: 4px;
      }

      article.link {
        padding: 20px;
        display: flex;
        justify-content: center;
      }
      article.link .img {
        padding-right: 20px;
        flex-grow: 0;
        height: 32px;
        width: 32px;
      }
      article.link .text {
        flex-grow: 1;
      }
      
      article figure {
        text-align: center;
        margin: 0;
        max-width: 100%;
        font-size: 0.8em;
      }
      
      img {
          max-width: 100%;
          height: auto;
      }
      img.float-right {
          float: right;
          display: inline;
          margin-left: 10px;
      }
      img.center {
          max-width: 100%;
          height: auto;
      }
      .pull-left {
         float: left;
         margin: 10px;
      }
      .pull-right {
         float: right;
         margin: 10px;
      }
      .blog-pages-list {
          border: var(--cool-border);
          margin-bottom: 20px;
          padding: 20px;
          background-color: var(--panel-color);;
      }

      .other-sites {
          border: var(--cool-border);
          background-color: var(--panel-color);
          display: flex;
          margin-bottom: 20px;
      }
      
      .other-sites div, .other-sites a {
          flex-grow: 1;
          padding: 5px;
      }
      .other-sites a {
          border-left: var(--cool-border);
          text-align: center;
      }
      header nav a:last-of-type {
          border-bottom: var(--cool-border);
      }
      
      @media only screen and (max-width: 700px) {
          header {
              height: auto;
          }
          
          header nav {
              flex-basis: 100%;
              border-top: 0;
              border-bottom: 0;

              flex-direction: row;
          }
          header nav a {
              border: var(--cool-border);
              border-top: 0;
              border-right: 0;
          }

          header nav a:last-of-type {
              border-right: var(--cool-border);
          }
      }
      
      article {
          border: var(--cool-border);
          margin-bottom: 20px;
          padding: 20px;
          background-color: var(--panel-color);;
          padding-bottom: 0;
          padding-top: 0;
          line-height: 1.5em;
      }
      
      img {
          max-width: 100%;
          height: auto;
      }
      
      .blog-pages-list {
          border: var(--cool-border);
          margin-bottom: 20px;
          padding: 20px;
          background-color: var(--panel-color);
      }
      
      .copyright {
          border: var(--cool-border);
          background-color: var(--panel-color);
          padding: 10px;
          margin-bottom: 20px;
      }
      .buttons {
          text-align: center;
          padding: 10px;
          border: var(--cool-border);
          background-color: var(--panel-color);
          margin-bottom: 20px;
      }
      .other-sites {
          border: var(--cool-border);
          background-color: var(--panel-color);
          display: flex;
          margin-bottom: 20px;

      }
      .other-sites div, .other-sites a {
          flex-grow: 1;
          padding:  6px;
      }
      .other-sites a:hover {
          background-color: var(--hover-button-bg);
      }          
    </style>
  </head>
  
<body>

  <header>
    <div class="logo">
      {{ partial "blog/face-game.html" . }}
    </div><div class="name">
      <a href="/blog">Michał's weblog</a>
    </div><nav>
      <a href="/">Homepage</a>
      <a href="/blog/index.xml">RSS</a>
      <a href="/blog/more">More</a>
    </nav>
  </header>

  <div class="other-sites">
    <div class="other">My other sites:</div>
    <a href="/brain-rot">Brain Rots</a>
    <a href="/cool-emacs">Cool Emacs</a>
    <a href="/unix-history">History of Unix</a>
  </div>
  
  {{ block "main" . }}
  {{ end }}

  <footer>
    <div class="copyright">
      This page is licensed under a <a href="https://creativecommons.org/licenses/by-nd/4.0/">CC BY-ND 4.0 Deed</a> license.
      If you found this site interesting, you can <a id="moneyLink" href="https://ko-fi.com/mmspl">buy me a coffee</a>.
      You can contact me via <a href="/blog/contact/">email</a> or using <a href="https://emacs.ch/@mms">mastodon</a>.
    </div>

    <div class="buttons">
      {{ partial "buttons/valid_html" . }}
      {{ partial "button-31" (dict "file" "rss.gif" "alt" "RSS Feed" "href" "https://michal.sapka.me/blog/index.xml") }}
      {{ partial "buttons/emacs" . }}
      {{ partial "buttons/openbsd" . }}
      <footer>
        
  </div>
</body>