diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-08-27 15:19:11 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-08-27 15:19:11 +0200 |
| commit | 9fcb38b42d71c3752a19866273d15e14b3dfa34d (patch) | |
| tree | c39741dda60ae91d74922c6990e3053871d2cd7e /themes/simple | |
| parent | fc9eff7f81b11a239039cf4a414245eab5f94190 (diff) | |
| download | mitjafelicijan.com-9fcb38b42d71c3752a19866273d15e14b3dfa34d.tar.gz | |
Added Openring
Diffstat (limited to 'themes/simple')
| -rw-r--r-- | themes/simple/layouts/_default/list.html | 17 | ||||
| -rw-r--r-- | themes/simple/layouts/_default/single.html | 12 | ||||
| -rw-r--r-- | themes/simple/layouts/partials/head.html | 32 | ||||
| -rw-r--r-- | themes/simple/openring/openring.html | 20 |
4 files changed, 57 insertions, 24 deletions
diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html index a848fc0..7d9a1d9 100644 --- a/themes/simple/layouts/_default/list.html +++ b/themes/simple/layouts/_default/list.html | |||
| @@ -16,17 +16,24 @@ | |||
| 16 | </ul> | 16 | </ul> |
| 17 | </nav> | 17 | </nav> |
| 18 | 18 | ||
| 19 | <hr class="border-2 border-gray-100 mb-10"> | ||
| 20 | |||
| 19 | <!-- Projects I work on --> | 21 | <!-- Projects I work on --> |
| 20 | <section class="mb-12"> | 22 | <section class="mb-12"> |
| 21 | <h4 class="text-2xl font-bold mb-6">Side projects I worked on</h4> | 23 | <h4 class="text-2xl font-bold mb-6">Side projects I worked on</h4> |
| 22 | <ul class="list-disc ml-6"> | 24 | <ul class="list-disc ml-6"> |
| 23 | <li><a href="https://git.mitjafelicijan.com/journalctl-proxy.git/" target="_blank" rel="noopener nofollow" class="underline hover:bg-yellow-200">journalctl-proxy - Exposes your systemd logs to web via web interface</a></li> | 25 | <li><a href="https://git.mitjafelicijan.com/journalctl-proxy.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-200">journalctl-proxy - Exposes your systemd logs to web via web interface</a></li> |
| 24 | <li><a href="https://git.mitjafelicijan.com/redis-marshal.git/" target="_blank" rel="noopener nofollow" class="underline hover:bg-yellow-200">redis-marshal - Lightweight Redis data exploration tool</a></li> | 26 | <li><a href="https://git.mitjafelicijan.com/redis-marshal.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-200">redis-marshal - Lightweight Redis data exploration tool</a></li> |
| 25 | <li><a href="https://git.mitjafelicijan.com/dna-encoding.git/" target="_blank" rel="noopener nofollow" class="underline hover:bg-yellow-200">dna-encoding - Tools for encoding files to DNA sequence</a></li> | 27 | <li><a href="https://git.mitjafelicijan.com/dna-encoding.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-200">dna-encoding - Tools for encoding files to DNA sequence</a></li> |
| 26 | <li><a href="https://git.mitjafelicijan.com/vertex.git/" target="_blank" rel="noopener nofollow" class="underline hover:bg-yellow-200">vertex - Create mock API's and add basic logic to simplify prototyping</a></li> | 28 | <li><a href="https://git.mitjafelicijan.com/vertex.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-200">vertex - Create mock API's and add basic logic to simplify prototyping</a></li> |
| 27 | <li><a href="https://git.mitjafelicijan.com/scarecrow.git/" target="_blank" rel="noopener nofollow" class="underline hover:bg-yellow-200">scarecrow - Minimal configuration reverse proxy</a></li> | 29 | <li><a href="https://git.mitjafelicijan.com/scarecrow.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-200">scarecrow - Minimal configuration reverse proxy</a></li> |
| 28 | </ul> | 30 | </ul> |
| 29 | </section> | 31 | </section> |
| 30 | 32 | ||
| 33 | <hr class="border-2 border-gray-100 mb-10"> | ||
| 34 | |||
| 35 | <!-- Openring --> | ||
| 36 | {{ partial "openring.html" . }} | ||
| 37 | |||
| 31 | </main> | 38 | </main> |
| 32 | {{ end }} | 39 | {{ end }} |
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html index 297d90e..6e85b1b 100644 --- a/themes/simple/layouts/_default/single.html +++ b/themes/simple/layouts/_default/single.html | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | <main aria-role="main" class="container-blog px-6 md:p-0"> | 2 | <main aria-role="main" class="container-blog px-6 md:p-0"> |
| 3 | 3 | ||
| 4 | <!-- Single article --> | 4 | <!-- Single article --> |
| 5 | <article itemtype="http://schema.org/Article" class="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">{{.Title}}</h1> | 7 | <h1 itemtype="headline" class="text-4xl font-extrabold mb-6">{{.Title}}</h1> |
| 8 | <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> | 8 | <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> |
| @@ -34,13 +34,19 @@ | |||
| 34 | {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }} | 34 | {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }} |
| 35 | {{ range $randomPosts }} | 35 | {{ range $randomPosts }} |
| 36 | <li class="mb-3"> | 36 | <li class="mb-3"> |
| 37 | <time class="block text-gray-500 text-sm">{{ .Date.Format "Mon Jan 2, 2006" }}</time> | 37 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Mon Jan 2, 2006" }}</time> |
| 38 | <a href="{{.Permalink}}" itemprop="url" class="hover:bg-yellow-200">{{.Title}}</a> | 38 | <a href="{{.Permalink}}" itemprop="url" class="hover:bg-yellow-200 font-medium">{{.Title}}</a> |
| 39 | <p class="text-gray-600 text-sm">{{.Summary}}</p> | ||
| 39 | </li> | 40 | </li> |
| 40 | {{end}} | 41 | {{end}} |
| 41 | </ul> | 42 | </ul> |
| 42 | </nav> | 43 | </nav> |
| 43 | </section> | 44 | </section> |
| 44 | 45 | ||
| 46 | <hr class="border-2 border-gray-100 mb-10"> | ||
| 47 | |||
| 48 | <!-- Openring --> | ||
| 49 | {{ partial "openring.html" . }} | ||
| 50 | |||
| 45 | </main> | 51 | </main> |
| 46 | {{ end }} | 52 | {{ end }} |
diff --git a/themes/simple/layouts/partials/head.html b/themes/simple/layouts/partials/head.html index c615ac1..b527ef7 100644 --- a/themes/simple/layouts/partials/head.html +++ b/themes/simple/layouts/partials/head.html | |||
| @@ -30,7 +30,7 @@ | |||
| 30 | color: #000; | 30 | color: #000; |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | article img { | 33 | article.single img { |
| 34 | max-width: 110%; | 34 | max-width: 110%; |
| 35 | width: 110%; | 35 | width: 110%; |
| 36 | position: relative; | 36 | position: relative; |
| @@ -40,7 +40,7 @@ | |||
| 40 | border-radius: 5px; | 40 | border-radius: 5px; |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | article p { | 43 | article.single p { |
| 44 | display: block; | 44 | display: block; |
| 45 | margin-block-start: 1em; | 45 | margin-block-start: 1em; |
| 46 | margin-block-end: 1em; | 46 | margin-block-end: 1em; |
| @@ -48,7 +48,7 @@ | |||
| 48 | margin-inline-end: 0px; | 48 | margin-inline-end: 0px; |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | article ol { | 51 | article.single ol { |
| 52 | display: block; | 52 | display: block; |
| 53 | list-style-type: decimal; | 53 | list-style-type: decimal; |
| 54 | margin-block-start: 1em; | 54 | margin-block-start: 1em; |
| @@ -58,13 +58,13 @@ | |||
| 58 | padding-inline-start: 40px; | 58 | padding-inline-start: 40px; |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | article ol>li>ol { | 61 | article.single ol>li>ol { |
| 62 | margin-block-start: 0 !important; | 62 | margin-block-start: 0 !important; |
| 63 | margin-block-end: 0 !important; | 63 | margin-block-end: 0 !important; |
| 64 | padding-inline-start: 20px; | 64 | padding-inline-start: 20px; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | article ul { | 67 | article.single ul { |
| 68 | display: block; | 68 | display: block; |
| 69 | list-style-type: disc; | 69 | list-style-type: disc; |
| 70 | margin-block-start: 1em; | 70 | margin-block-start: 1em; |
| @@ -74,7 +74,7 @@ | |||
| 74 | padding-inline-start: 40px; | 74 | padding-inline-start: 40px; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | article code { | 77 | article.single code { |
| 78 | font-family: monospace; | 78 | font-family: monospace; |
| 79 | background: rgb(255, 241, 177); | 79 | background: rgb(255, 241, 177); |
| 80 | border-radius: 5px; | 80 | border-radius: 5px; |
| @@ -82,7 +82,7 @@ | |||
| 82 | font-weight: 500; | 82 | font-weight: 500; |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | article pre { | 85 | article.single pre { |
| 86 | background: unset; | 86 | background: unset; |
| 87 | padding: unset; | 87 | padding: unset; |
| 88 | 88 | ||
| @@ -95,13 +95,13 @@ | |||
| 95 | margin-block-end: 40px; | 95 | margin-block-end: 40px; |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | article pre>code { | 98 | article.single pre>code { |
| 99 | background: unset; | 99 | background: unset; |
| 100 | padding: unset; | 100 | padding: unset; |
| 101 | font-weight: 400; | 101 | font-weight: 400; |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | article h2 { | 104 | article.single h2 { |
| 105 | font-size: 180%; | 105 | font-size: 180%; |
| 106 | line-height: 1.2em; | 106 | line-height: 1.2em; |
| 107 | font-weight: 700; | 107 | font-weight: 700; |
| @@ -109,7 +109,7 @@ | |||
| 109 | margin-block-end: 20px; | 109 | margin-block-end: 20px; |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | article h3 { | 112 | article.single h3 { |
| 113 | margin-block-start: 30px; | 113 | margin-block-start: 30px; |
| 114 | margin-block-end: 20px; | 114 | margin-block-end: 20px; |
| 115 | font-size: 160%; | 115 | font-size: 160%; |
| @@ -133,7 +133,7 @@ | |||
| 133 | padding: 5px 10px; | 133 | padding: 5px 10px; |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | article blockquote { | 136 | article.single blockquote { |
| 137 | margin-left: 40px; | 137 | margin-left: 40px; |
| 138 | position: relative; | 138 | position: relative; |
| 139 | margin-block-start: 30px; | 139 | margin-block-start: 30px; |
| @@ -141,7 +141,7 @@ | |||
| 141 | margin-right: 0; | 141 | margin-right: 0; |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | article blockquote:before { | 144 | article.single blockquote:before { |
| 145 | content: ' '; | 145 | content: ' '; |
| 146 | background-image: url('/general/alert-light.svg'); | 146 | background-image: url('/general/alert-light.svg'); |
| 147 | background-size: 30px 30px; | 147 | background-size: 30px 30px; |
| @@ -152,11 +152,11 @@ | |||
| 152 | top: 6px; | 152 | top: 6px; |
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | article blockquote p { | 155 | article.single blockquote p { |
| 156 | padding-left: 10px; | 156 | padding-left: 10px; |
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | article video { | 159 | article.single video { |
| 160 | max-width: 100%; | 160 | max-width: 100%; |
| 161 | margin: 30px auto; | 161 | margin: 30px auto; |
| 162 | display: block; | 162 | display: block; |
| @@ -164,12 +164,12 @@ | |||
| 164 | background: #f8f8f8 !important; | 164 | background: #f8f8f8 !important; |
| 165 | } | 165 | } |
| 166 | 166 | ||
| 167 | article audio { | 167 | article.single audio { |
| 168 | width: 100%; | 168 | width: 100%; |
| 169 | outline: none; | 169 | outline: none; |
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | article .katex-display { | 172 | article.single .katex-display { |
| 173 | margin-block-start: 40px; | 173 | margin-block-start: 40px; |
| 174 | margin-block-end: 40px; | 174 | margin-block-end: 40px; |
| 175 | } | 175 | } |
diff --git a/themes/simple/openring/openring.html b/themes/simple/openring/openring.html new file mode 100644 index 0000000..e3284b2 --- /dev/null +++ b/themes/simple/openring/openring.html | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | <section class="mb-10"> | ||
| 2 | |||
| 3 | <h4 class="text-2xl font-bold mb-6">Articles from blogs I follow around the net</h4> | ||
| 4 | |||
| 5 | <section> | ||
| 6 | {{range .Articles}} | ||
| 7 | <article class="mb-4"> | ||
| 8 | <a href="{{.Link}}" target="_blank" rel="noopener" class="font-semibold mb-1">{{.Title}}</a> | ||
| 9 | <p class="mb-1 text-gray-600 text-sm">{{.Summary}}</p> | ||
| 10 | <div class="text-gray-400 text-xs"> | ||
| 11 | Via <a href="{{.SourceLink}}" class="underline">{{.SourceTitle}}</a> on {{.Date | datef "January 2, 2006"}} | ||
| 12 | </div> | ||
| 13 | </article> | ||
| 14 | {{end}} | ||
| 15 | </section> | ||
| 16 | |||
| 17 | <p class="text-sm text-gray-600"> | ||
| 18 | <a href="https://git.sr.ht/~sircmpwn/openring" class="no-underline hover:underline">Generated by openring.</a> | ||
| 19 | </p> | ||
| 20 | </section> | ||
