aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
blob: 6518c17cdb20b2fa08c9361515f0e4c8a4d2488b (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
<!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/xcXHf/BwsL/I8XY/yPK3v8XGiD/IbjL/yPF2f8XGiD/Fxkf/yLF2f8gnK3/Fxog/62ztv8fwNf/FRcd/x271v8mz93/G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-sizing: border-box; }

			:root {
				--border-color: gainsboro;
				--content-width: 840px;
				--primary-color: blue;
			}

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

			body { font-family: sans-serif; max-width: var(--content-width); margin: 0 auto; line-height: 160%; }

			header { margin-block-start: 1em; margin-block-end: 4em; }
			header nav { display: flex; gap: 1em; align-items: center; padding: 0.5em 0; border-bottom: 2px solid black; }
			header nav a { color: black; }
			header nav span.title { font-weight: bold; }

			section { margin-block-start: 3em; margin-block-end: 3em; }
			blockquote { border-left: 0.2em solid black; padding-left: 1em; margin-left: 0; }
			footer { font-size: small; }

			ul.post-list { padding: 0em; }
			ul.post-list li { display: flex; gap: 1em; align-items: center; padding: 0.25em 0; }
			ul.post-list li time { min-width: 50px; }

			a { color: var(--primary-color); text-decoration: none; }
			a:hover { text-decoration: underline; }

			h1, h2, h3, h4 { font-size: initial; }
			article h2, article h3, article h4 { margin-block-start: 2.5em; }
			article h1 { font-size: 130%; line-height: 110%; }
			article code { background: lemonchiffon; padding: 0 0.2em; }
			article pre { border: 1px solid var(--border-color); padding: 1em; line-height: 140%; text-wrap: nowrap; overflow-x: auto; }
			article pre > code { background: initial; padding: 0; }

			img, video, audio { max-width: 100%; }
			figure { display: flex; justify-content: center; margin: 1.5em 0; }

			table { width: 100%; border: 1px solid var(--border-color); border-collapse: collapse; }
			table thead { background: var(--border-color); border: 1px solid black; }
			table td, table th { text-align: left; padding: 0.4em 0.6em; }
			table tbody tr { border-bottom: 1px solid var(--border-color); }

			.tags mark { font-family: monospace; padding: 0 0.2em; }
			.static-prefix { width: 7em; }

			.multicolumn-list { column-count: 3; column-gap: 3em; }
			.multicolumn-list a { display: block; margin-bottom: 0.5rem; break-inside: avoid; }

			.project-release table tr td:last-child { text-align: right; }
			.project-release table tr th:last-child { text-align: right; }
			.project-list ul { column-count: 3; column-gap: 3em; }
			.github-link p { display: flex; align-items: center; gap: 0.3em; }
			.github-link p img { border: 0; padding: 0; height: 15px; }

			/* Hotfixes for strange behaviour. */
			article iframe { margin: 0!important; }
			pre code span { display: initial !important; }

			@media only screen and (max-width: 860px) {
				body { margin: auto; padding: 1em; }
				ul.post-list li time { display: none; }
				.multicolumn-list { column-count: 2; }
				.project-list ul { column-count: 2; }
				.hide-on-mobile { display: none; }
			}

			@media print {
				header, footer { display: none; }
			}
		</style>

		<script src="https://cdn.usefathom.com/script.js" data-site="OKIJWYKR" defer></script>
	</head>

	<body>
		<header>
			<nav>
				<span class="title hide-on-mobile static-prefix">Navigation</span>
				<a href="/">Home</a>
				<a href="/projects.html">Projects</a>
				<a href="https://github.com/mitjafelicijan/probe" target="_blank">Probe</a>
				<a href="https://git.mitjafelicijan.com" target="_blank">Code</a>
				<a href="https://github.com/mitjafelicijan/dotfiles" target="_blank" class="hide-on-mobile">Dotfiles</a>
				<a href="/curriculum-vitae.html">CV</a>
				<a href="https://github.com/mitjafelicijan" target="_blank">GH</a>
				<a href="/feed.xml" class="hide-on-mobile">RSS</a>
			</nav>
		</header>

		<main>
			{{ block "content" . }}{{ end }}
		</main>

		<footer>
			<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>
			<p>This page's is also available as <a href="/feed.xml" target="_blank">RSS feed</a>. Page was built with <a href="https://github.com/mitjafelicijan/jbmafp" target="_blank">jbmafp</a>.</p>
		</footer>
	</body>
</html>