From d95fc5ca9e6a9c28894514b77e77b6b0eb58fbe9 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 26 Jan 2023 11:36:44 +0100 Subject: A bunch of theme changes and removal of Cactus comments --- themes/bare/openring/openring.html | 7 +- themes/simple/layouts/_default/list.html | 5 +- themes/simple/layouts/_default/single.html | 13 +- themes/simple/layouts/partials/comments.html | 30 ++--- themes/simple/layouts/partials/footer.html | 22 ++-- themes/simple/layouts/partials/navigation.html | 12 +- themes/simple/layouts/partials/read-more.html | 2 +- themes/simple/layouts/partials/side-projects.html | 35 +++++- themes/simple/openring/openring.html | 5 +- themes/simple/static/css/tailwind.css | 140 +++------------------- 10 files changed, 100 insertions(+), 171 deletions(-) (limited to 'themes') diff --git a/themes/bare/openring/openring.html b/themes/bare/openring/openring.html index bd9ac55..3c870bb 100755 --- a/themes/bare/openring/openring.html +++ b/themes/bare/openring/openring.html @@ -1,5 +1,5 @@
-

Articles from blogs I follow around the net

+

Articles from blogs I follow around the net

{{ range .Articles }} @@ -7,7 +7,8 @@ {{ .Title }}

{{ .Summary }}

- Via {{ .SourceTitle }} on {{ .Date | datef "January 2, 2006" }} + Via {{ .SourceTitle }} on {{ .Date | datef "January 2, 2006" + }}
{{ end }} @@ -16,4 +17,4 @@

Generated with openring.

-
+
\ No newline at end of file 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 @@ {{ range (where .Site.RegularPages "Section" "posts") }}
-

m@mitjafelicijan.com or comment bellow.

-
- - - - -
+

Care to leave a comment?

+

You can write me an email at + m@mitjafelicijan.com + or catch up with me + on + Telegram. +

+ \ No newline at end of file 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 @@
-

+


+

This website does not track you. - Content is made available under the CC BY 4.0 license unless specified otherwise. - Blog feed is available as RSS feed. + Content is made available under the CC BY 4.0 + license unless specified otherwise. + Blog feed is available as RSS feed.

@@ -11,9 +15,13 @@ {{ if ne .IsHome true }} - - - + + + {{ end }} {{ if ne .IsHome true }} @@ -51,4 +59,4 @@ } }); -{{ end }} +{{ 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 @@ + \ 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 @@ {{ end }} - + \ 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 @@

Side projects I worked on

-
+ \ 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 @@ {{ .Title }}

{{ .Summary }}

- Via {{ .SourceTitle }} on {{ .Date | datef "January 2, 2006" }} + Via {{ .SourceTitle }} + on {{ .Date | datef "January 2, 2006" }}
{{ end }} @@ -16,4 +17,4 @@

Generated with openring.

- + \ 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 @@ /* Headings */ article.single h2 { - @apply text-2xl font-bold mb-4 mt-8; + @apply text-2xl font-bold mb-8 mt-8; } article.single h3 { @@ -38,11 +38,11 @@ article.single p { /* Links */ article.single a { - @apply underline hover:bg-yellow-100; + @apply underline-offset-2 decoration-1 decoration-wavy underline hover:bg-yellow-100; } /* Blockquote */ -article.single blockquote { +article.single .content blockquote { background-image: url('/general/alert-light.svg'); background-size: 30px 30px; background-repeat: no-repeat; @@ -50,6 +50,10 @@ article.single blockquote { @apply pl-12 my-8; } +article.single .content blockquote p { + @apply mb-2; +} + /* Media: Images, audio, video */ article.single img { @apply rounded w-full !bg-gray-50 my-8; @@ -90,13 +94,21 @@ article.single table th { } /* Unordered list */ -article.single ul { +article.single .content ul { @apply list-disc pl-6 md:pl-10 mb-6; } /* Ordered list */ -article.single ol { - @apply list-decimal pl-8 md:pl-10; +article.single .content ol { + @apply list-decimal pl-8 md:pl-10 mb-6; +} + +/* Table of contents */ +article.single #TableOfContents { + @apply mb-10 ml-4 leading-relaxed; +} +article.single #TableOfContents ul { + @apply list-decimal pl-4 md:pl-6; } /* Katex */ @@ -117,119 +129,3 @@ article.single .ll-iframe::before { article.single .ll-iframe.empty::before { content: none; } - -/* Cactus Comments */ -.comments img { - max-width: auto !important; - max-width: unset !important; - max-width: inherit !important; -} - -.cactus-container .cactus-editor-textarea { - @apply border w-full h-32 px-3 py-2 outline-none rounded mb-2; -} - -.cactus-container .cactus-editor-name input { - @apply border w-full px-3 py-2 mb-2 outline-none rounded; -} - -.cactus-container .cactus-editor-name { - @apply mb-1; -} - -/* Cactus: Buttons */ -.cactus-editor-buttons { - @apply flex gap-2; -} - -.cactus-container .cactus-button { - @apply text-base bg-gray-200 hover:bg-gray-300 font-medium px-6 py-2 rounded; -} - -.cactus-container .cactus-editor { - @apply mb-10; -} - -/* Cactus: Comment List */ -.cactus-container .cactus-comments-list { - @apply flex flex-col gap-8; -} - -.cactus-container .cactus-comment { - @apply flex gap-4; -} - -.cactus-container .cactus-comment .cactus-comment-avatar img { - @apply w-8 h-8 rounded-full; -} - -.cactus-container .cactus-comment .cactus-comment-avatar-placeholder { - @apply w-8 h-8 rounded-full bg-gray-300; -} - -.cactus-container .cactus-comment .cactus-comment-header { - @apply flex gap-2 items-center; -} - -.cactus-container .cactus-comment .cactus-comment-header .cactus-comment-displayname { - @apply font-semibold; -} - -.cactus-container .cactus-comment .cactus-comment-header .cactus-comment-time { - @apply text-gray-400 text-sm; -} - -.cactus-container .cactus-comment .cactus-message-text code { - @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium; -} - -/* Unordered list */ -.cactus-container .cactus-comment .cactus-message-text ul { - @apply list-disc pl-2 md:pl-6; -} - -/* Ordered list */ -.cactus-container .cactus-comment .cactus-message-text ol { - @apply list-decimal pl-2 md:pl-6; -} - -/* Cactus: Login */ -.cactus-container .cactus-login-form-wrapper { - @apply border mb-6 p-3 relative rounded; -} - -.cactus-container .cactus-login-form .cactus-login-close { - @apply absolute right-3 top-3 w-4 h-4; -} - -.cactus-container .cactus-login-form .cactus-login-title { - @apply font-bold mb-4 mt-0 pt-0; -} - -/* Cactus: Login with a button */ -.cactus-container .cactus-login-form .cactus-login-client { - @apply mb-6; -} - -.cactus-container .cactus-login-form .cactus-login-client-title { - @apply font-semibold mb-2; -} - -/* Cactus: Login with credentials */ -.cactus-container .cactus-login-form .cactus-login-credentials {} - -.cactus-container .cactus-login-form .cactus-login-credentials-title { - @apply font-semibold mb-1; -} - -.cactus-container .cactus-login-form .cactus-login-field { - @apply flex gap-4 mb-2 items-center; -} - -.cactus-container .cactus-login-form .cactus-login-label { - @apply w-20; -} - -.cactus-container .cactus-login-form input { - @apply border px-2 py-1 rounded; -} -- cgit v1.2.3