aboutsummaryrefslogtreecommitdiff
path: root/themes/simple
diff options
context:
space:
mode:
Diffstat (limited to 'themes/simple')
-rwxr-xr-xthemes/simple/layouts/_default/list.html5
-rwxr-xr-xthemes/simple/layouts/_default/single.html13
-rwxr-xr-xthemes/simple/layouts/partials/comments.html30
-rwxr-xr-xthemes/simple/layouts/partials/footer.html22
-rwxr-xr-xthemes/simple/layouts/partials/navigation.html12
-rw-r--r--themes/simple/layouts/partials/read-more.html2
-rw-r--r--themes/simple/layouts/partials/side-projects.html35
-rwxr-xr-xthemes/simple/openring/openring.html5
-rw-r--r--themes/simple/static/css/tailwind.css140
9 files changed, 96 insertions, 168 deletions
diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html
index 856abf4..8d72aed 100755
--- a/themes/simple/layouts/_default/list.html
+++ b/themes/simple/layouts/_default/list.html
@@ -9,7 +9,8 @@
9 {{ range (where .Site.RegularPages "Section" "posts") }} 9 {{ range (where .Site.RegularPages "Section" "posts") }}
10 <article class="mb-5" itemscope itemtype="http://schema.org/Article"> 10 <article class="mb-5" itemscope itemtype="http://schema.org/Article">
11 <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time> 11 <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time>
12 <a href="/{{ .Params.url }}" itemprop="url" class="hover:bg-yellow-100" rel="bookmark noopener" aria-label="Opens URL"> 12 <a href="/{{ .Params.url }}" itemprop="url" class="hover:bg-yellow-100" rel="bookmark noopener"
13 aria-label="Opens URL">
13 {{ if .Params.draft }} 14 {{ if .Params.draft }}
14 <span class="bg-orange-600 text-white px-1.5">Draft</span> 15 <span class="bg-orange-600 text-white px-1.5">Draft</span>
15 {{ end }} 16 {{ end }}
@@ -30,4 +31,4 @@
30 {{ partial "openring.html" . }} 31 {{ partial "openring.html" . }}
31 32
32</main> 33</main>
33{{ end }} 34{{ end }} \ No newline at end of file
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html
index 81a7d58..ffa776f 100755
--- a/themes/simple/layouts/_default/single.html
+++ b/themes/simple/layouts/_default/single.html
@@ -4,14 +4,21 @@
4 <!-- Single article --> 4 <!-- Single article -->
5 <article itemtype="http://schema.org/Article" class="single mb-12"> 5 <article itemtype="http://schema.org/Article" class="single mb-12">
6 <header class="mb-6"> 6 <header class="mb-6">
7 <h1 itemtype="headline" class="text-4xl font-extrabold mb-6 leading-1 md:leading-2">{{ .Title }}</h1> 7 <h1 itemtype="headline" class="text-4xl font-bold mb-4 leading-1 md:leading-2">{{ .Title }}</h1>
8 8
9 {{ if in .Type "posts" }} 9 {{ if in .Type "posts" }}
10 <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> 10 <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time>
11 {{ end }} 11 {{ end }}
12 </header> 12 </header>
13 13
14 <div class="leading-relaxed"> 14 <div>
15 {{ if ge (len .TableOfContents) 100 }}
16 <p class="font-semibold">Table of contents</p>
17 <div>{{ .TableOfContents }}</div>
18 {{ end }}
19 </div>
20
21 <div class="leading-relaxed content">
15 {{.Content}} 22 {{.Content}}
16 </div> 23 </div>
17 </article> 24 </article>
@@ -46,4 +53,4 @@
46 {{ end }} 53 {{ end }}
47 54
48</main> 55</main>
49{{ end }} 56{{ end }} \ No newline at end of file
diff --git a/themes/simple/layouts/partials/comments.html b/themes/simple/layouts/partials/comments.html
index b905967..bd26145 100755
--- a/themes/simple/layouts/partials/comments.html
+++ b/themes/simple/layouts/partials/comments.html
@@ -1,21 +1,11 @@
1<section class="comments"> 1<section class="comments">
2 <h2 class="text-xl font-bold mb-2">Leave a comment</h2> 2 <h2 class="text-xl font-bold mb-2">Care to leave a comment?</h2>
3 <p class="mb-4">You can write me an email at <a href="mailto:m@mitjafelicijan.com" class="underline hover:bg-yellow-100">m@mitjafelicijan.com</a> or comment bellow.</p> 3 <p class="mb-4">You can write me an email at
4 <div id="comment-section"></div> 4 <a href="mailto:m@mitjafelicijan.com"
5 5 class="underline-offset-2 decoration-1 decoration-wavy underline hover:bg-yellow-100">m@mitjafelicijan.com</a>
6 <script type="text/javascript" src="https://latest.cactus.chat/cactus.js"></script> 6 or catch up with me
7 7 <a href="https://telegram.me/mitjafelicijan" target="_blank"
8 <script> 8 class="underline-offset-2 decoration-1 decoration-wavy underline hover:bg-yellow-100">on
9 window.addEventListener('load', () => { 9 Telegram</a>.
10 initComments({ 10 </p>
11 node: document.getElementById("comment-section"), 11</section> \ No newline at end of file
12 defaultHomeserverUrl: "https://matrix.cactus.chat:8448",
13 serverName: "cactus.chat",
14 siteName: "mitjafelicijan.com",
15 commentSectionId: "{{ .File }}",
16 pageSize: 50,
17 updateInterval: 10,
18 });
19 });
20 </script>
21</section>
diff --git a/themes/simple/layouts/partials/footer.html b/themes/simple/layouts/partials/footer.html
index 7383ae1..a0c745f 100755
--- a/themes/simple/layouts/partials/footer.html
+++ b/themes/simple/layouts/partials/footer.html
@@ -1,8 +1,12 @@
1<footer class="container-blog mx-auto px-6 md:p-0 text-gray-400 text-sm"> 1<footer class="container-blog mx-auto px-6 md:p-0 text-gray-400 text-sm">
2 <p class="pb-12"> 2 <hr class="border-2 border-gray-100 my-12">
3 <p class="pb-16">
3 This website does not track you. 4 This website does not track you.
4 Content is made available under the <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noreferrer" class="underline hover:text-gray-800">CC BY 4.0 license</a> unless specified otherwise. 5 Content is made available under the <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank"
5 Blog feed is available as <a href="/index.xml" target="_blank" class="underline hover:text-gray-800">RSS</a> feed. 6 rel="noreferrer" class="underline-offset-2 decoration-1 decoration-wavy underline hover:text-gray-800">CC BY 4.0
7 license</a> unless specified otherwise.
8 Blog feed is available as <a href="/index.xml" target="_blank"
9 class="underline-offset-2 decoration-1 decoration-wavy underline hover:text-gray-800">RSS feed</a>.
6 </p> 10 </p>
7</footer> 11</footer>
8 12
@@ -11,9 +15,13 @@
11 15
12{{ if ne .IsHome true }} 16{{ if ne .IsHome true }}
13<!-- KaTeX math library --> 17<!-- KaTeX math library -->
14<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous"> 18<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css"
15<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js" integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous"></script> 19 integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous">
16<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> 20<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js"
21 integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous"></script>
22<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/auto-render.min.js"
23 integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous"
24 onload="renderMathInElement(document.body);"></script>
17{{ end }} 25{{ end }}
18 26
19{{ if ne .IsHome true }} 27{{ if ne .IsHome true }}
@@ -51,4 +59,4 @@
51 } 59 }
52 }); 60 });
53</script> 61</script>
54{{ end }} 62{{ end }} \ No newline at end of file
diff --git a/themes/simple/layouts/partials/navigation.html b/themes/simple/layouts/partials/navigation.html
index ba727c5..a463ade 100755
--- a/themes/simple/layouts/partials/navigation.html
+++ b/themes/simple/layouts/partials/navigation.html
@@ -1,16 +1,18 @@
1<div class="container-blog mx-auto px-6 md:p-0"> 1<div class="container-blog mx-auto px-6 md:p-0">
2 <header class="flex py-4 mt-4 mb-6 flex-col md:flex-row items-center "> 2 <header class="flex py-4 mt-4 mb-8 flex-col md:flex-row items-center ">
3 <div class="flex-grow mb-2 md:mb-0"> 3 <div class="flex-grow mb-2 md:mb-0">
4 <a href="/" itemprop="url" class="text-xl font-bold hover:bg-yellow-100">Mitja Felicijan</a> 4 <a href="/" itemprop="url" class="text-xl font-semibold hover:bg-yellow-100">Mitja Felicijan</a>
5 </div> 5 </div>
6 6
7 <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="flex items-center gap-1" role="toolbar"> 7 <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="flex items-center gap-1" role="toolbar">
8 <meta itemprop="name" content="Main Menu"> 8 <meta itemprop="name" content="Main Menu">
9 9
10 <a href="https://git.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Git</a> 10 <a href="https://git.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url"
11 <a href="https://files.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Files</a> 11 class="font-medium px-2 hover:bg-yellow-100">Git</a>
12 <a href="https://files.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url"
13 class="font-medium px-2 hover:bg-yellow-100">Files</a>
12 <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-100">CV</a> 14 <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-100">CV</a>
13 <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-100 hidden md:block">RSS</a> 15 <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-100 hidden md:block">RSS</a>
14 </nav> 16 </nav>
15 </header> 17 </header>
16</div> 18</div> \ No newline at end of file
diff --git a/themes/simple/layouts/partials/read-more.html b/themes/simple/layouts/partials/read-more.html
index d604bfc..a238017 100644
--- a/themes/simple/layouts/partials/read-more.html
+++ b/themes/simple/layouts/partials/read-more.html
@@ -13,4 +13,4 @@
13 {{ end }} 13 {{ end }}
14 </ul> 14 </ul>
15 </nav> 15 </nav>
16</section> 16</section> \ No newline at end of file
diff --git a/themes/simple/layouts/partials/side-projects.html b/themes/simple/layouts/partials/side-projects.html
index 5cca9b6..f675803 100644
--- a/themes/simple/layouts/partials/side-projects.html
+++ b/themes/simple/layouts/partials/side-projects.html
@@ -1,10 +1,33 @@
1<section class="mb-12"> 1<section class="mb-12">
2 <h2 class="text-2xl font-bold mb-6">Side projects I worked on</h2> 2 <h2 class="text-2xl font-bold mb-6">Side projects I worked on</h2>
3 <ul class="list-disc ml-6"> 3 <ul class="list-disc ml-6">
4 <li><a href="https://git.mitjafelicijan.com/journalctl-proxy.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-100">journalctl-proxy - Exposes your systemd logs to web via web interface</a></li> 4 <li>
5 <li><a href="https://git.mitjafelicijan.com/redis-marshal.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-100">redis-marshal - Lightweight Redis data exploration tool</a></li> 5 <a href="https://git.mitjafelicijan.com/cord.h.git/" target="_blank" rel="noopener nofollow"
6 <li><a href="https://git.mitjafelicijan.com/dna-encoding.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-100">dna-encoding - Tools for encoding files to DNA sequence</a></li> 6 class="hover:bg-yellow-100">cord.h - Small C library for handling strings</a>
7 <li><a href="https://git.mitjafelicijan.com/vertex.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-100">vertex - Create mock API's and add basic logic to simplify prototyping</a></li> 7 </li>
8 <li><a href="https://git.mitjafelicijan.com/scarecrow.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-100">scarecrow - Minimal configuration reverse proxy</a></li> 8 <li>
9 <a href="https://git.mitjafelicijan.com/mprogress.git/" target="_blank" rel="noopener nofollow"
10 class="hover:bg-yellow-100">mprogress - Tiny utility that displays progress bar in terminal</a>
11 </li>
12 <li>
13 <a href="https://git.mitjafelicijan.com/journalctl-proxy.git/" target="_blank" rel="noopener nofollow"
14 class="hover:bg-yellow-100">journalctl-proxy - Exposes your systemd logs to web via web interface</a>
15 </li>
16 <li>
17 <a href="https://git.mitjafelicijan.com/redis-marshal.git/" target="_blank" rel="noopener nofollow"
18 class="hover:bg-yellow-100">redis-marshal - Lightweight Redis data exploration tool</a>
19 </li>
20 <li>
21 <a href="https://git.mitjafelicijan.com/dna-encoding.git/" target="_blank" rel="noopener nofollow"
22 class="hover:bg-yellow-100">dna-encoding - Tools for encoding files to DNA sequence</a>
23 </li>
24 <li>
25 <a href="https://git.mitjafelicijan.com/vertex.git/" target="_blank" rel="noopener nofollow"
26 class="hover:bg-yellow-100">vertex - Create mock API's and add basic logic to simplify prototyping</a>
27 </li>
28 <li>
29 <a href="https://git.mitjafelicijan.com/scarecrow.git/" target="_blank" rel="noopener nofollow"
30 class="hover:bg-yellow-100">scarecrow - Minimal configuration reverse proxy</a>
31 </li>
9 </ul> 32 </ul>
10</section> 33</section> \ No newline at end of file
diff --git a/themes/simple/openring/openring.html b/themes/simple/openring/openring.html
index bd9ac55..8bc92f5 100755
--- a/themes/simple/openring/openring.html
+++ b/themes/simple/openring/openring.html
@@ -7,7 +7,8 @@
7 <a href="{{ .Link }}" target="_blank" rel="noopener" class="font-medium mb-1 hover:bg-yellow-100">{{ .Title }}</a> 7 <a href="{{ .Link }}" target="_blank" rel="noopener" class="font-medium mb-1 hover:bg-yellow-100">{{ .Title }}</a>
8 <p class="mb-1 text-sm text-gray-600">{{ .Summary }}</p> 8 <p class="mb-1 text-sm text-gray-600">{{ .Summary }}</p>
9 <div class="text-gray-500 font-medium text-xs"> 9 <div class="text-gray-500 font-medium text-xs">
10 Via <a href="{{ .SourceLink }}" class="underline">{{ .SourceTitle }}</a> on {{ .Date | datef "January 2, 2006" }} 10 Via <a href="{{ .SourceLink }}" class="underline">{{ .SourceTitle }}</a>
11 on {{ .Date | datef "January 2, 2006" }}
11 </div> 12 </div>
12 </article> 13 </article>
13 {{ end }} 14 {{ end }}
@@ -16,4 +17,4 @@
16 <p class="text-sm text-gray-500"> 17 <p class="text-sm text-gray-500">
17 <a href="https://git.sr.ht/~sircmpwn/openring" class="no-underline hover:underline">Generated with openring.</a> 18 <a href="https://git.sr.ht/~sircmpwn/openring" class="no-underline hover:underline">Generated with openring.</a>
18 </p> 19 </p>
19</section> 20</section> \ No newline at end of file
diff --git a/themes/simple/static/css/tailwind.css b/themes/simple/static/css/tailwind.css
index edbb0ab..05b6492 100644
--- a/themes/simple/static/css/tailwind.css
+++ b/themes/simple/static/css/tailwind.css
@@ -20,7 +20,7 @@
20 20
21/* Headings */ 21/* Headings */
22article.single h2 { 22article.single h2 {
23 @apply text-2xl font-bold mb-4 mt-8; 23 @apply text-2xl font-bold mb-8 mt-8;
24} 24}
25 25
26article.single h3 { 26article.single h3 {
@@ -38,11 +38,11 @@ article.single p {
38 38
39/* Links */ 39/* Links */
40article.single a { 40article.single a {
41 @apply underline hover:bg-yellow-100; 41 @apply underline-offset-2 decoration-1 decoration-wavy underline hover:bg-yellow-100;
42} 42}
43 43
44/* Blockquote */ 44/* Blockquote */
45article.single blockquote { 45article.single .content blockquote {
46 background-image: url('/general/alert-light.svg'); 46 background-image: url('/general/alert-light.svg');
47 background-size: 30px 30px; 47 background-size: 30px 30px;
48 background-repeat: no-repeat; 48 background-repeat: no-repeat;
@@ -50,6 +50,10 @@ article.single blockquote {
50 @apply pl-12 my-8; 50 @apply pl-12 my-8;
51} 51}
52 52
53article.single .content blockquote p {
54 @apply mb-2;
55}
56
53/* Media: Images, audio, video */ 57/* Media: Images, audio, video */
54article.single img { 58article.single img {
55 @apply rounded w-full !bg-gray-50 my-8; 59 @apply rounded w-full !bg-gray-50 my-8;
@@ -90,13 +94,21 @@ article.single table th {
90} 94}
91 95
92/* Unordered list */ 96/* Unordered list */
93article.single ul { 97article.single .content ul {
94 @apply list-disc pl-6 md:pl-10 mb-6; 98 @apply list-disc pl-6 md:pl-10 mb-6;
95} 99}
96 100
97/* Ordered list */ 101/* Ordered list */
98article.single ol { 102article.single .content ol {
99 @apply list-decimal pl-8 md:pl-10; 103 @apply list-decimal pl-8 md:pl-10 mb-6;
104}
105
106/* Table of contents */
107article.single #TableOfContents {
108 @apply mb-10 ml-4 leading-relaxed;
109}
110article.single #TableOfContents ul {
111 @apply list-decimal pl-4 md:pl-6;
100} 112}
101 113
102/* Katex */ 114/* Katex */
@@ -117,119 +129,3 @@ article.single .ll-iframe::before {
117article.single .ll-iframe.empty::before { 129article.single .ll-iframe.empty::before {
118 content: none; 130 content: none;
119} 131}
120
121/* Cactus Comments */
122.comments img {
123 max-width: auto !important;
124 max-width: unset !important;
125 max-width: inherit !important;
126}
127
128.cactus-container .cactus-editor-textarea {
129 @apply border w-full h-32 px-3 py-2 outline-none rounded mb-2;
130}
131
132.cactus-container .cactus-editor-name input {
133 @apply border w-full px-3 py-2 mb-2 outline-none rounded;
134}
135
136.cactus-container .cactus-editor-name {
137 @apply mb-1;
138}
139
140/* Cactus: Buttons */
141.cactus-editor-buttons {
142 @apply flex gap-2;
143}
144
145.cactus-container .cactus-button {
146 @apply text-base bg-gray-200 hover:bg-gray-300 font-medium px-6 py-2 rounded;
147}
148
149.cactus-container .cactus-editor {
150 @apply mb-10;
151}
152
153/* Cactus: Comment List */
154.cactus-container .cactus-comments-list {
155 @apply flex flex-col gap-8;
156}
157
158.cactus-container .cactus-comment {
159 @apply flex gap-4;
160}
161
162.cactus-container .cactus-comment .cactus-comment-avatar img {
163 @apply w-8 h-8 rounded-full;
164}
165
166.cactus-container .cactus-comment .cactus-comment-avatar-placeholder {
167 @apply w-8 h-8 rounded-full bg-gray-300;
168}
169
170.cactus-container .cactus-comment .cactus-comment-header {
171 @apply flex gap-2 items-center;
172}
173
174.cactus-container .cactus-comment .cactus-comment-header .cactus-comment-displayname {
175 @apply font-semibold;
176}
177
178.cactus-container .cactus-comment .cactus-comment-header .cactus-comment-time {
179 @apply text-gray-400 text-sm;
180}
181
182.cactus-container .cactus-comment .cactus-message-text code {
183 @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium;
184}
185
186/* Unordered list */
187.cactus-container .cactus-comment .cactus-message-text ul {
188 @apply list-disc pl-2 md:pl-6;
189}
190
191/* Ordered list */
192.cactus-container .cactus-comment .cactus-message-text ol {
193 @apply list-decimal pl-2 md:pl-6;
194}
195
196/* Cactus: Login */
197.cactus-container .cactus-login-form-wrapper {
198 @apply border mb-6 p-3 relative rounded;
199}
200
201.cactus-container .cactus-login-form .cactus-login-close {
202 @apply absolute right-3 top-3 w-4 h-4;
203}
204
205.cactus-container .cactus-login-form .cactus-login-title {
206 @apply font-bold mb-4 mt-0 pt-0;
207}
208
209/* Cactus: Login with a button */
210.cactus-container .cactus-login-form .cactus-login-client {
211 @apply mb-6;
212}
213
214.cactus-container .cactus-login-form .cactus-login-client-title {
215 @apply font-semibold mb-2;
216}
217
218/* Cactus: Login with credentials */
219.cactus-container .cactus-login-form .cactus-login-credentials {}
220
221.cactus-container .cactus-login-form .cactus-login-credentials-title {
222 @apply font-semibold mb-1;
223}
224
225.cactus-container .cactus-login-form .cactus-login-field {
226 @apply flex gap-4 mb-2 items-center;
227}
228
229.cactus-container .cactus-login-form .cactus-login-label {
230 @apply w-20;
231}
232
233.cactus-container .cactus-login-form input {
234 @apply border px-2 py-1 rounded;
235}