aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts
diff options
context:
space:
mode:
authorMitja Felicijan <m@mitjafelicijan.com>2023-07-03 01:38:05 +0200
committerMitja Felicijan <m@mitjafelicijan.com>2023-07-03 01:38:05 +0200
commitb097ad035a089076b6cf1f1e9c7f648439d9b073 (patch)
tree1d06a44f4d6ec551c67ed72a4b7136ae59602e8a /themes/simple/layouts
parent71b7c639fa0b4ffe7425ec9bd6c3b0fef08b0028 (diff)
downloadmitjafelicijan.com-b097ad035a089076b6cf1f1e9c7f648439d9b073.tar.gz
Bunch of CSS improvements
Diffstat (limited to 'themes/simple/layouts')
-rw-r--r--themes/simple/layouts/_default/list.html4
-rw-r--r--themes/simple/layouts/_default/notes.html4
-rw-r--r--themes/simple/layouts/partials/comments.html4
-rw-r--r--themes/simple/layouts/partials/navigation.html16
-rw-r--r--themes/simple/layouts/partials/read-more.html12
-rw-r--r--themes/simple/layouts/partials/side-projects.html71
-rw-r--r--themes/simple/layouts/tags/list.html2
7 files changed, 60 insertions, 53 deletions
diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html
index f92d9c0..6362b0f 100644
--- a/themes/simple/layouts/_default/list.html
+++ b/themes/simple/layouts/_default/list.html
@@ -22,8 +22,8 @@
22 {{ range (where .Site.RegularPages "Section" "posts") }} 22 {{ range (where .Site.RegularPages "Section" "posts") }}
23 <div> 23 <div>
24 <article class="mb-5" itemscope itemtype="http://schema.org/Article"> 24 <article class="mb-5" itemscope itemtype="http://schema.org/Article">
25 <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time> 25 <time class="block text-gray-400 font-medium text-xs mb-1">{{ .Date.Format "Monday Jan 2, 2006" }}</time>
26 <a href="/{{ .Params.url }}" itemprop="url" class="hover:bg-yellow-100" rel="bookmark noopener" aria-label="Opens URL"> 26 <a href="/{{ .Params.url }}" itemprop="url" class="underline" rel="bookmark noopener" aria-label="Opens URL">
27 {{ if .Params.draft }} 27 {{ if .Params.draft }}
28 <span class="bg-orange-600 text-white px-1.5">Draft</span> 28 <span class="bg-orange-600 text-white px-1.5">Draft</span>
29 {{ end }} 29 {{ end }}
diff --git a/themes/simple/layouts/_default/notes.html b/themes/simple/layouts/_default/notes.html
index 02560b0..f624814 100644
--- a/themes/simple/layouts/_default/notes.html
+++ b/themes/simple/layouts/_default/notes.html
@@ -9,7 +9,7 @@
9 <p class="text-gray-600 italic"> 9 <p class="text-gray-600 italic">
10 Notes about things I learn, things I do, things I want to remember, 10 Notes about things I learn, things I do, things I want to remember,
11 but never do. You can subscribe to this 11 but never do. You can subscribe to this
12 <a href="/notes/index.xml" class="underline hover:bg-yellow-100">RSS feed</a> 12 <a href="/notes/index.xml" class="underline">RSS feed</a>
13 which contains only the notes without the blog posts. 13 which contains only the notes without the blog posts.
14 </p> 14 </p>
15 </section> 15 </section>
@@ -28,7 +28,7 @@
28 <ul class="flex flex-wrap gap-2"> 28 <ul class="flex flex-wrap gap-2">
29 {{ range .Site.Taxonomies.tags }} 29 {{ range .Site.Taxonomies.tags }}
30 <li> 30 <li>
31 <a href="{{ .Page.Permalink }}" class="inline-block px-3 py-1 rounded bg-gray-100 hover:bg-yellow-100"> 31 <a href="{{ .Page.Permalink }}" class="inline-block px-3 py-1 rounded bg-gray-100 hover:bg-yellow-200">
32 {{ .Page.Title }} 32 {{ .Page.Title }}
33 </a> 33 </a>
34 </li> 34 </li>
diff --git a/themes/simple/layouts/partials/comments.html b/themes/simple/layouts/partials/comments.html
index c87f1c6..50c28ca 100644
--- a/themes/simple/layouts/partials/comments.html
+++ b/themes/simple/layouts/partials/comments.html
@@ -3,7 +3,7 @@
3 3
4 <p class="mb-10"> 4 <p class="mb-10">
5 You can write me an email at 5 You can write me an email at
6 <a href="mailto:m@mitjafelicijan.com" class="underline-offset-2 underline hover:bg-yellow-100">m@mitjafelicijan.com</a> or catch up with me 6 <a href="mailto:m@mitjafelicijan.com" class="underline-offset-2 underline">m@mitjafelicijan.com</a> or catch up with me
7 <a href="https://telegram.me/mitjafelicijan" target="_blank" class="underline-offset-2 underline hover:bg-yellow-100">on Telegram</a>. 7 <a href="https://telegram.me/mitjafelicijan" target="_blank" class="underline-offset-2 underline">on Telegram</a>.
8 </p> 8 </p>
9</section> 9</section>
diff --git a/themes/simple/layouts/partials/navigation.html b/themes/simple/layouts/partials/navigation.html
index 44c6059..9c13fe5 100644
--- a/themes/simple/layouts/partials/navigation.html
+++ b/themes/simple/layouts/partials/navigation.html
@@ -1,7 +1,7 @@
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-8 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-semibold hover:bg-yellow-100">Mitja Felicijan</a> 4 <a href="/" itemprop="url" class="text-xl font-semibold hover:underline">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">
@@ -17,13 +17,13 @@
17 </span> 17 </span>
18 </span> 18 </span>
19 19
20 <a href="/notes.html" class="font-medium px-2 hover:bg-yellow-100">Notes</a> 20 <a href="/notes.html" class="font-medium px-2 hover:bg-yellow-200 rounded">Notes</a>
21 <a href="https://telegram.me/mitjafelicijan" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Telegram</a> 21 <a href="https://telegram.me/mitjafelicijan" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-200 rounded">Telegram</a>
22 <a href="https://git.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Git</a> 22 <a href="https://git.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-200 rounded">Git</a>
23 <a href="https://files.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100 hidden md:block">Files</a> 23 <a href="https://files.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-200 rounded hidden md:block">Files</a>
24 <a href="/mitjafelicijan.gpg.pub.txt" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">GPG</a> 24 <a href="/mitjafelicijan.gpg.pub.txt" itemprop="url" class="font-medium px-2 hover:bg-yellow-200 rounded">GPG</a>
25 <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-100">CV</a> 25 <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-200 rounded">CV</a>
26 <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-100 hidden md:block">RSS</a> 26 <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-200 rounded hidden md:block">RSS</a>
27 </nav> 27 </nav>
28 </header> 28 </header>
29</div> 29</div>
diff --git a/themes/simple/layouts/partials/read-more.html b/themes/simple/layouts/partials/read-more.html
index a238017..9de1554 100644
--- a/themes/simple/layouts/partials/read-more.html
+++ b/themes/simple/layouts/partials/read-more.html
@@ -2,15 +2,15 @@
2 <h2 class="text-2xl font-bold mb-6">Read more from this site</h2> 2 <h2 class="text-2xl font-bold mb-6">Read more from this site</h2>
3 <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12"> 3 <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12">
4 <meta itemprop="name" content="Article list"> 4 <meta itemprop="name" content="Article list">
5 <ul> 5 <nav class="flex flex-col gap-4">
6 {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }} 6 {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }}
7 {{ range $randomPosts }} 7 {{ range $randomPosts }}
8 <li class="mb-6"> 8 <div>
9 <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Mon Jan 2, 2006" }}</time> 9 <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Mon Jan 2, 2006" }}</time>
10 <a href="/{{ .Params.url }}" itemprop="url" class="hover:bg-yellow-100 font-medium">{{ .Title }}</a> 10 <a href="/{{ .Params.url }}" itemprop="url" class="block underline font-medium mb-1">{{ .Title }}</a>
11 <p class="text-gray-600 text-sm">{{ .Summary }}</p> 11 <p class="text-gray-600 text-sm">{{ .Summary }}</p>
12 </li> 12 </div>
13 {{ end }} 13 {{ end }}
14 </ul> 14 </nav>
15 </nav> 15 </nav>
16</section> \ No newline at end of file 16</section>
diff --git a/themes/simple/layouts/partials/side-projects.html b/themes/simple/layouts/partials/side-projects.html
index f675803..a2256e7 100644
--- a/themes/simple/layouts/partials/side-projects.html
+++ b/themes/simple/layouts/partials/side-projects.html
@@ -1,33 +1,40 @@
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 work/worked on</h2>
3 <ul class="list-disc ml-6"> 3
4 <li> 4 <nav class="flex flex-col gap-4 md:gap-0 md:border w-full mb-4">
5 <a href="https://git.mitjafelicijan.com/cord.h.git/" target="_blank" rel="noopener nofollow" 5 <a href="https://git.mitjafelicijan.com/cord.h.git/" target="_blank" rel="noopener nofollow" class="block md:p-3 hover:bg-yellow-200 md:border-b">
6 class="hover:bg-yellow-100">cord.h - Small C library for handling strings</a> 6 <span class="inline-block md:w-40 underline">cord.h</span>
7 </li> 7 <span>Small C library for handling strings</span>
8 <li> 8 </a>
9 <a href="https://git.mitjafelicijan.com/mprogress.git/" target="_blank" rel="noopener nofollow" 9 <a href="https://git.mitjafelicijan.com/mprogress.git/" target="_blank" rel="noopener nofollow" class="block md:p-3 hover:bg-yellow-200 md:border-b">
10 class="hover:bg-yellow-100">mprogress - Tiny utility that displays progress bar in terminal</a> 10 <span class="inline-block md:w-40 underline">mprogress</span>
11 </li> 11 <span>Tiny utility that displays progress bar in terminal</span>
12 <li> 12 </a>
13 <a href="https://git.mitjafelicijan.com/journalctl-proxy.git/" target="_blank" rel="noopener nofollow" 13 <a href="https://git.mitjafelicijan.com/journalctl-proxy.git/" target="_blank" rel="noopener nofollow" class="block md:p-3 hover:bg-yellow-200 md:border-b">
14 class="hover:bg-yellow-100">journalctl-proxy - Exposes your systemd logs to web via web interface</a> 14 <span class="inline-block md:w-40 underline">journalctl-proxy</span>
15 </li> 15 <span>Exposes your systemd logs to web via web interface</span>
16 <li> 16 </a>
17 <a href="https://git.mitjafelicijan.com/redis-marshal.git/" target="_blank" rel="noopener nofollow" 17 <a href="https://git.mitjafelicijan.com/redis-marshal.git/" target="_blank" rel="noopener nofollow" class="block md:p-3 hover:bg-yellow-200 md:border-b">
18 class="hover:bg-yellow-100">redis-marshal - Lightweight Redis data exploration tool</a> 18 <span class="inline-block md:w-40 underline">redis-marshal</span>
19 </li> 19 <span>Lightweight Redis data exploration tool</span>
20 <li> 20 </a>
21 <a href="https://git.mitjafelicijan.com/dna-encoding.git/" target="_blank" rel="noopener nofollow" 21 <a href="https://git.mitjafelicijan.com/dna-encoding.git/" target="_blank" rel="noopener nofollow" class="block md:p-3 hover:bg-yellow-200 md:border-b">
22 class="hover:bg-yellow-100">dna-encoding - Tools for encoding files to DNA sequence</a> 22 <span class="inline-block md:w-40 underline">dna-encoding</span>
23 </li> 23 <span>Tools for encoding files to DNA sequence</span>
24 <li> 24 </a>
25 <a href="https://git.mitjafelicijan.com/vertex.git/" target="_blank" rel="noopener nofollow" 25 <a href="https://git.mitjafelicijan.com/vertex.git/" target="_blank" rel="noopener nofollow" class="block md:p-3 hover:bg-yellow-200 md:border-b">
26 class="hover:bg-yellow-100">vertex - Create mock API's and add basic logic to simplify prototyping</a> 26 <span class="inline-block md:w-40 underline">vertex</span>
27 </li> 27 <span>Create mock API's and add basic logic to simplify prototyping</span>
28 <li> 28 </a>
29 <a href="https://git.mitjafelicijan.com/scarecrow.git/" target="_blank" rel="noopener nofollow" 29 <a href="https://git.mitjafelicijan.com/scarecrow.git/" target="_blank" rel="noopener nofollow" class="block md:p-3 hover:bg-yellow-200">
30 class="hover:bg-yellow-100">scarecrow - Minimal configuration reverse proxy</a> 30 <span class="inline-block md:w-40 underline">scarecrow</span>
31 </li> 31 <span>Minimal configuration reverse proxy</span>
32 </ul> 32 </a>
33</section> \ No newline at end of file 33 </nav>
34
35 <p class="text-gray-500 italic">* For more projects, check out
36 my <a href="https://git.mitjafelicijan.com/" class="underline">Git
37 server</a>. Most of the projects there are probably work in progress and
38 should be considered as such.</p>
39
40</section>
diff --git a/themes/simple/layouts/tags/list.html b/themes/simple/layouts/tags/list.html
index 7917301..bd3bd57 100644
--- a/themes/simple/layouts/tags/list.html
+++ b/themes/simple/layouts/tags/list.html
@@ -15,7 +15,7 @@
15 <p class="text-gray-600 italic"> 15 <p class="text-gray-600 italic">
16 Notes about things I learn, things I do, things I want to remember, 16 Notes about things I learn, things I do, things I want to remember,
17 but never do. You can subscribe to this 17 but never do. You can subscribe to this
18 <a href="/notes.xml" class="underline hover:bg-yellow-100">RSS feed</a> 18 <a href="/notes.xml" class="underline">RSS feed</a>
19 which contains only the notes without the blog posts. 19 which contains only the notes without the blog posts.
20 </p> 20 </p>
21 </section> 21 </section>