aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
blob: b66174a31515448e1d25b125b19f577a6866eefc (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
<!doctype html>
<html lang="{{ .Config.Language }}">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <title>{{ block "title" . }}{{ .Config.Title }}{{ end }}</title>
    <meta name="description" content="{{ block "description" . }}{{ .Config.Description }}{{ end }}"/>
    <link rel="alternate" type="application/rss+xml" href="{{ .Config.BaseURL }}/index.xml" />
    <link href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL69vf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv76+/8LBwQkAAAAAAAAAAAAAAAC+vb3/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL+9vf/Bv78JAAAAAAAAAAAAAAAAu7q6/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC7ubr/vr29CAAAAAAAAAAAy8nJAZ6foP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnqGj/6GipAoAAAAAHLjU/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AAAAAAAAAAAAAN/7AAAAAAAAAAAAAAAAAAAAAAAAj/EAAI/5AACP8QAA3/sAAA==" rel="icon" type="image/x-icon" />
    <style>
      :root {
        --body-max-width: 860px;
        --link-color: blue;
        --code-background: #f8f8f8;
        --inline-code-background: #f2f2f2;
      }

      *::selection {
        background: var(--link-color);
        color: #ffffff;
      }

      *::-moz-selection {
        background: var(--link-color);
        color: #ffffff;
      }

      *::-webkit-selection {
        background: var(--link-color);
        color: #ffffff;
      }

      body {
        padding: 2rem;
        max-width: var(--body-max-width);
        background: white;
        font-family: sans-serif;
        line-height: 1.4rem;
        font-size: 16px;
        display: flex;
        flex-direction: column;
        gap: 1em;
      }

      header nav {
        display: flex;
        gap: 1em;
      }

      h1, h2, h3 {
        line-height: initial;
      }

      h1 {
        font-size: xx-large;
      }

      cap { text-transform: capitalize; }
      ul li { padding: 0.2em 0; }

      pre {
        text-wrap: nowrap;
        overflow-x: auto;
        padding: 1em;
        background: var(--code-background)!important;
      }

      code {
        font-family: monospace;
        font-size: 14px;
        padding: 2px 5px;
        background: var(--inline-code-background)!important;
      }

      pre code {
        background: transparent;
        padding: initial;
      }

      figure {
        margin-inline-start: 0;
        margin-inline-end: 0;
      }

      figcaption {
        width: var(--body-max-width);
        max-width: 100%;
        text-align: center;
      }

      figcaption p {
        margin: 0.3em 0 1.5em 0;
        font-style: italic;
      }

      img, video, audio {
        width: var(--body-max-width);
        max-width: 100%;
      }

      article iframe { /* fixes embeds going to center */
        margin: 0!important;
      }

      audio::-webkit-media-controls-enclosure {
        border-radius: 0;
      }

      pre { margin-block-start: 2em; margin-block-end: 2em; }
      table { max-width: 100%; border: 1px solid black; }
      table td, table th { padding: 0.3em; }

      .promobox {        
        margin-top: 1em;
        text-decoration: none;
        max-width: 650px;
        display: inline-block;
        background: blue;
        color: white;
        padding: 1em;
      }
      .promobox:hover { text-decoration: underline; }

      @media only screen and (max-width: 600px) {
        body {
          padding: 0.5em;
          word-wrap: break-word;
        }

        header nav {
          gap: 0.7rem;
        }

        a {
          word-wrap: break-word;
        }
      }
    </style>
    <script defer src="https://app.tinyanalytics.io/pixel/isfRNEahfHiS2Ttp"></script>
  </head>
  <body>
    <header>
      <nav>
        <a href="/">Home</a>
        <a href="https://github.com/mitjafelicijan" target="_blank">Code</a>
        <a href="/assets/mitjafelicijan.pgp.pub.txt">PGP</a>
        <a href="/assets/urls.txt">Newsboat</a>
        <a href="/curriculum-vitae.html">CV</a>
        <a href="/feed.xml">RSS</a>
      </nav>
    </header>
    <main>{{ block "content" . }}{{ end }}</main>
    <footer>
      <hr>
      <p><big><strong>Want to comment or have something to add?</strong></big></p>
      <p>
        You can write me an email
        at <a href="mailto:mitja.felicijan@gmail.com">mitja.felicijan@gmail.com</a> or
        catch up with me <a href="https://telegram.me/mitjafelicijan" target="_blank">on Telegram</a>.
      </p>
      <hr>
      <p><small>This page's is also available as <a href="/feed.xml" target="_blank">RSS feed</a>.</small></p>
    </footer>
  </body>
</html>