aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-11-01 22:54:27 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-11-01 22:54:27 +0100
commit2417a6b7603524dc5cd30d29b153f91024b9443d (patch)
tree9be5ea8e5baba96dd9159217da6badf6157fb595 /templates
parent89ba3497f07a8ea43d209b583f39fcc286acc923 (diff)
downloadmitjafelicijan.com-2417a6b7603524dc5cd30d29b153f91024b9443d.tar.gz
Move to Jekyll
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html231
-rw-r--r--templates/includes/.gitkeep0
-rw-r--r--templates/index.html40
-rw-r--r--templates/index.xml21
-rw-r--r--templates/note.html14
-rw-r--r--templates/notes.xml21
-rw-r--r--templates/openring.html12
-rw-r--r--templates/page.html13
-rw-r--r--templates/post.html14
-rw-r--r--templates/radio.pls38
-rw-r--r--templates/robots.txt2
-rw-r--r--templates/sitemap.xml8
-rw-r--r--templates/vault.md20
13 files changed, 0 insertions, 434 deletions
diff --git a/templates/base.html b/templates/base.html
deleted file mode 100644
index 674925c..0000000
--- a/templates/base.html
+++ /dev/null
@@ -1,231 +0,0 @@
1<!DOCTYPE html>
2<html lang="{{ .Config.Language }}">
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width,initial-scale=1">
6 <meta name="generator" content="JBMAFP - github.com/mitjafelicijan/jbmafp">
7
8 <link href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL69vf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv76+/8LBwQkAAAAAAAAAAAAAAAC+vb3/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL+9vf/Bv78JAAAAAAAAAAAAAAAAu7q6/wAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAOB/f9B7v//BaX+/wAAAAAAAAAAQ878SAyZ/v9n1v4KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADu9v8DDJb+/z3N/XgAAAAA3/sAAN/7AADf+wAA3/sAAAAAAAAAAAAAAAAAAN/7AAAAAAAAAAAAAAAAAAAAAAAAj/EAAI/5AACP8QAA3/sAAA==" rel="icon" type="image/x-icon" />
9
10 <title>{{ block "title" . }}{{ .Config.Title }}{{ end }}</title>
11 <meta name="description" content="{{ block "description" . }}{{ .Config.Description }}{{ end }}">
12 <meta name="author" content="{{ .Config.Title }}">
13
14 <link rel="alternate" type="application/rss+xml" title="Mitja Felicijan's posts" href="{{ .Config.BaseURL }}/index.xml">
15 <link rel="alternate" type="application/rss+xml" title="Mitja Felicijan's notes" href="{{ .Config.BaseURL }}/notes.xml">
16
17 <style>
18 :root {
19 --border-color: gainsboro;
20 --border-size: 2px;
21 --link-color: blue;
22 --bg-color: #eee;
23 }
24
25 *::selection {
26 background: var(--link-color);
27 color: #ffffff;
28 }
29
30 *::-moz-selection {
31 background: var(--link-color);
32 color: #ffffff;
33 }
34
35 *::-webkit-selection {
36 background: var(--link-color);
37 color: #ffffff;
38 }
39
40 body {
41 padding: 2.5rem;
42 max-width: 1900px;
43 background: white;
44 font-family: sans-serif;
45 line-height: 1.35rem;
46 font-size: 16px;
47 }
48
49 hr {
50 border: 0;
51 border-bottom: var(--border-size) solid var(--border-color);
52 margin-block-start: 1.5rem;
53 }
54
55 a {
56 color: var(--link-color);
57 text-decoration: none;
58 }
59
60 h1, h2, h3 {
61 line-height: initial;
62 }
63
64 h1 {
65 font-size: xx-large;
66 }
67
68 footer {
69 margin-block-start: 2rem;
70 }
71
72 cap {
73 text-transform: capitalize;
74 }
75
76 blockquote {
77 font-style: italic;
78 }
79
80 table {
81 max-width: 100%;
82 border: var(--border-size) solid var(--border-color);
83 border-collapse: separate;
84 border-spacing: 0;
85 }
86
87 table thead tr th {
88 border-bottom: var(--border-size) solid var(--border-color);
89 text-align: left;
90 }
91
92 table th, table td {
93 padding: 0.5em 0.8em;
94 }
95
96 ul.list li {
97 padding: 0.2em 0;
98 }
99
100 ul {
101 line-height: 1.35em;
102 }
103
104 pre {
105 text-wrap: nowrap;
106 overflow-x: auto;
107 padding: 0 1em;
108 border: var(--border-size) solid var(--border-color);
109 }
110
111 code {
112 padding: 0 3px;
113 font-size: 14px;
114 border: 0;
115 background: var(--bg-color);
116 }
117
118 pre code {
119 line-height: 1.3em;
120 background: white;
121 }
122
123 pre, code, pre *, code * {
124 font-family: monospace;
125 }
126
127 figure {
128 margin-inline-start: 0;
129 margin-inline-end: 0;
130 }
131
132 figcaption {
133 width: 800px;
134 max-width: 100%;
135 text-align: center;
136 }
137
138 figcaption p {
139 margin: 0.3em 0 1.5em 0;
140 font-style: italic;
141 }
142
143 img, video, audio {
144 width: 800px;
145 max-width: 100%;
146 border: var(--border-size) solid var(--border-color);
147 padding: 0.5em;
148 }
149
150 header nav {
151 display: flex;
152 gap: 0.9rem;
153 }
154
155 article iframe { /* fixes embeds going to center */
156 margin: 0!important;
157 }
158
159 audio::-webkit-media-controls-enclosure {
160 border-radius: 0;
161 }
162
163 @media only screen and (max-width: 600px) {
164 body {
165 padding: 0.5em;
166 word-wrap: break-word;
167 }
168
169 header nav {
170 gap: 0.7rem;
171 }
172
173 header nav .hob {
174 display: none;
175 }
176
177 a {
178 word-wrap: break-word;
179 }
180
181 img, video, audio {
182 padding: 0em;
183 }
184 }
185 </style>
186 </head>
187 <body>
188
189 <header>
190 <nav class="main" itemscope itemtype="http://schema.org/SiteNavigationElement" role="navigation" aria-label="Main navigation">
191 <a href="/">Home</a>
192 <a href="/#posts">Posts</a>
193 <a href="/#notes">Notes</a>
194 <a href="/#sideprojects" class="hob">Side Projects</a>
195 <a href="/vault.html">Vault</a>
196 <a href="https://github.com/mitjafelicijan" target="_blank">Code</a>
197 <a href="/mitjafelicijan.pgp.pub.txt" target="_blank" class="hob">PGP</a>
198 <a href="/curriculum-vitae.html">CV</a>
199 <a href="/index.xml" target="_blank" class="hob">RSS</a>
200 </nav>
201 </header>
202
203 <main role="main">
204 {{ block "content" . }}{{ end }}
205 </main>
206
207 <section>
208 <hr>
209 {{ template "openring.html" }}
210 </section>
211
212 <footer>
213 <hr>
214 <p><big><strong>Want to comment or have something to add?</strong></big></p>
215 <p>
216 You can write me an email
217 at <a href="mailto:mitja.felicijan@gmail.com">mitja.felicijan@gmail.com</a> or
218 catch up with me <a href="https://telegram.me/mitjafelicijan" target="_blank">on Telegram</a>.
219 </p>
220 <hr>
221 <p>This website does not track you. Content is made available under the <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noreferrer">CC BY 4.0 license</a> unless
222 specified otherwise. Blog is also available as <a href="/index.xml" target="_blank">RSS feed</a>.
223 </p>
224 </footer>
225
226 <script>
227 window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
228 </script>
229 <script defer src="/_vercel/insights/script.js"></script>
230 </body>
231</html>
diff --git a/templates/includes/.gitkeep b/templates/includes/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/templates/includes/.gitkeep
+++ /dev/null
diff --git a/templates/index.html b/templates/index.html
deleted file mode 100644
index 67ddd0c..0000000
--- a/templates/index.html
+++ /dev/null
@@ -1,40 +0,0 @@
1{{ template "base.html" . }}
2
3{{ define "content" }}
4<div>
5 <p>{{ .Config.Description }}</p>
6
7 <h2><a name="posts"></a>More long form, ramblings etc</h2>
8 <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Articles" class="list">
9 <meta itemprop="name" content="Article list">
10 {{ range .Pages }}
11 {{ if eq .Type "post" }}
12 <li role="listitem"><a href="/{{ .RelPermalink }}">{{ .Title }}</a></li>
13 {{ end }}
14 {{ end }}
15 </ul>
16
17 <h2><a name="notes"></a>Notes?! Maybe useful</h2>
18 <h2></h2>
19 <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Notes" class="list">
20 <meta itemprop="name" content="Note list">
21 {{ range .Pages }}
22 {{ if eq .Type "note" }}
23 <li role="listitem"><a href="/{{ .RelPermalink }}">{{ .Title }}</a></li>
24 {{ end }}
25 {{ end }}
26 </ul>
27
28 <h2><a name="sideprojects"></a>Side projects I work/worked on</h2>
29 <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Side projects" class="list">
30 <meta itemprop="name" content="Side projects">
31 <li role="listitem"><a href="https://git.mitjafelicijan.com/cord.h.git/" target="_blank">cord.h</a> — Small C library for handling strings</li>
32 <li role="listitem"><a href="https://git.mitjafelicijan.com/mprogress.git/" target="_blank">mprogress</a> — Tiny utility that displays progress bar in terminal</li>
33 <li role="listitem"><a href="https://git.mitjafelicijan.com/journalctl-proxy.git/" target="_blank">journalctl-proxy</a> — Exposes your systemd logs to web via web interface</li>
34 <li role="listitem"><a href="https://git.mitjafelicijan.com/redis-marshal.git/" target="_blank">redis-marshal</a> — Lightweight Redis data exploration tool</li>
35 <li role="listitem"><a href="https://git.mitjafelicijan.com/vertex.git/" target="_blank">vertex</a> — Create mock API's and add basic logic to simplify prototyping</li>
36 <li role="listitem"><a href="https://git.mitjafelicijan.com/dna-encoding.git/" target="_blank">dna-encoding</a> — Tools for encoding files to DNA sequence</li>
37 <li role="listitem"><a href="https://git.mitjafelicijan.com/scarecrow.git/" target="_blank">scarecrow</a> — Minimal configuration reverse proxy</li>
38 </ul>
39</div>
40{{ end }}
diff --git a/templates/index.xml b/templates/index.xml
deleted file mode 100644
index 11c4886..0000000
--- a/templates/index.xml
+++ /dev/null
@@ -1,21 +0,0 @@
1<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
2 <channel>
3 <title>{{ .Config.Title }}'s posts</title>
4 <link>{{ .Config.BaseURL }}</link>
5 <description>{{ .Config.Description }}</description>
6 <language>{{ .Config.Language }}</language>
7
8 {{ range $idx, $page := .Pages }}
9 {{ if eq $page.Type "post" }}
10 <item>
11 <title>{{ $page.Title }}</title>
12 <link>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</link>
13 <pubDate>{{ $page.Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate>
14 <guid>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</guid>
15 <description>{{ $page.Summary }}</description>
16 <content:encoded>{{ $page.Raw }}</content:encoded>
17 </item>
18 {{ end }}
19 {{ end }}
20 </channel>
21</rss>
diff --git a/templates/note.html b/templates/note.html
deleted file mode 100644
index 28c7907..0000000
--- a/templates/note.html
+++ /dev/null
@@ -1,14 +0,0 @@
1{{ template "base.html" . }}
2
3{{ define "title" }}{{ .Page.Title }}{{ end }}
4{{ define "description" }}{{ .Page.Summary }}{{ end }}
5
6{{ define "content" }}
7<article itemtype="http://schema.org/Article">
8 <h1 itemtype="headline">{{ .Page.Title }}</h1>
9 <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }} on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p>
10 <div>
11 {{ .Page.HTML }}
12 </div>
13</article>
14{{ end }}
diff --git a/templates/notes.xml b/templates/notes.xml
deleted file mode 100644
index b7217fb..0000000
--- a/templates/notes.xml
+++ /dev/null
@@ -1,21 +0,0 @@
1<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
2 <channel>
3 <title>{{ .Config.Title }}'s notes</title>
4 <link>{{ .Config.BaseURL }}</link>
5 <description>{{ .Config.Description }}</description>
6 <language>en-us</language>
7
8 {{ range $idx, $page := .Pages }}
9 {{ if eq $page.Type "note" }}
10 <item>
11 <title>{{ $page.Title }}</title>
12 <link>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</link>
13 <pubDate>{{ $page.Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate>
14 <guid>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</guid>
15 <description>{{ $page.Summary }}</description>
16 <content:encoded>{{ $page.Raw }}</content:encoded>
17 </item>
18 {{ end }}
19 {{ end }}
20 </channel>
21</rss>
diff --git a/templates/openring.html b/templates/openring.html
deleted file mode 100644
index 5eb52e9..0000000
--- a/templates/openring.html
+++ /dev/null
@@ -1,12 +0,0 @@
1<h2>Posts from blogs I follow around the net</h2>
2
3<ul>
4 {{ range .Articles }}
5 <li>
6 <a href="{{ .Link }}" target="_blank" rel="noopener">{{ .Title }}</a> — <a href="{{ .SourceLink }}">{{ .SourceTitle }}</a>
7 <div>{{ .Summary }}
8 </li>
9 {{ end }}
10</ul>
11
12<p>Generated with <a href="https://git.sr.ht/~sircmpwn/openring" target="_blank" rel="noopener">openring</a>.</p>
diff --git a/templates/page.html b/templates/page.html
deleted file mode 100644
index 7ee5219..0000000
--- a/templates/page.html
+++ /dev/null
@@ -1,13 +0,0 @@
1{{ template "base.html" . }}
2
3{{ define "title" }}{{ .Page.Title }}{{ end }}
4{{ define "description" }}{{ .Page.Summary }}{{ end }}
5
6{{ define "content" }}
7<div>
8 <h1>{{ .Page.Title }}</h1>
9 <div>
10 {{ .Page.HTML }}
11 </div>
12</div>
13{{ end }}
diff --git a/templates/post.html b/templates/post.html
deleted file mode 100644
index 28c7907..0000000
--- a/templates/post.html
+++ /dev/null
@@ -1,14 +0,0 @@
1{{ template "base.html" . }}
2
3{{ define "title" }}{{ .Page.Title }}{{ end }}
4{{ define "description" }}{{ .Page.Summary }}{{ end }}
5
6{{ define "content" }}
7<article itemtype="http://schema.org/Article">
8 <h1 itemtype="headline">{{ .Page.Title }}</h1>
9 <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }} on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p>
10 <div>
11 {{ .Page.HTML }}
12 </div>
13</article>
14{{ end }}
diff --git a/templates/radio.pls b/templates/radio.pls
deleted file mode 100644
index 77e6307..0000000
--- a/templates/radio.pls
+++ /dev/null
@@ -1,38 +0,0 @@
1# Find stations: https://streamurl.link/
2
3[playlist]
4
5Title1=Metal
6File1=http://kathy.torontocast.com:2820/
7
8Title2=Technolovers Minimal
9File2=https://stream.technolovers.fm/minimal
10
11Title3=Indie Rock
12File3=http://s5.radio.co/s36d03408d/listen
13
14Title4=Montreal's Classic Rock
15File4=http://streams.justclassicrock.com:8000
16
17Title5=Raute Metal
18File5=https://metal-high.rautemusik.fm/?ref
19
20Title6=NCC 1701a Engine Noise
21File6=https://files.mitjafelicijan.com/haphazard/ncc-1701-a-engine-noise.ogg
22
23Title7=Funk & Soul
24File7=http://streams.80s80s.de/soul/mp3-192/
25
26Title8=80's Pop
27File8=http://streams.fluxfm.de/80er/mp3-320
28
29Title9=Roots Legacy Radio Dub
30File9=http://l.rootslegacy.fr/
31
32Title10=Ambiental
33File10=http://radio.stereoscenic.com/ama-h
34
35#Title6=
36#File6=
37
38Length1=-1
diff --git a/templates/robots.txt b/templates/robots.txt
deleted file mode 100644
index c2a49f4..0000000
--- a/templates/robots.txt
+++ /dev/null
@@ -1,2 +0,0 @@
1User-agent: *
2Allow: /
diff --git a/templates/sitemap.xml b/templates/sitemap.xml
deleted file mode 100644
index b7a0926..0000000
--- a/templates/sitemap.xml
+++ /dev/null
@@ -1,8 +0,0 @@
1<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
2 {{ range $idx, $page := .Pages }}
3 <url>
4 <loc>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</loc>
5 <lastmod>{{ $page.Created.Format "2006-01-02T15:04:05" }}+00:00</lastmod>
6 </url>
7 {{ end }}
8</urlset>
diff --git a/templates/vault.md b/templates/vault.md
deleted file mode 100644
index 666a247..0000000
--- a/templates/vault.md
+++ /dev/null
@@ -1,20 +0,0 @@
1---
2title: Personal vault
3date: 2022-08-27T12:00:00+02:00
4url: vault.html
5type: page
6draft: false
7---
8
9**Hi traveler!**
10
11This is a repository of interesting things I have gathered over time and it also
12stores binaries etc of my personal projects.
13
14Be kind, this server is bandwidth limited.
15
16*Good luck!*
17
18---
19
20{CONTENT}