From 3a91ff1e61ab9488028f279e572482ced9ed9572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 11 Apr 2022 22:36:32 +0300 Subject: [PATCH] dark theme, better url and date formats --- config.toml | 6 +++ .../{my-first-post.md => first-post-here.md} | 3 +- themes/default/static/css/main.css | 37 ++++++++++++++++--- 3 files changed, 38 insertions(+), 8 deletions(-) rename content/posts/{my-first-post.md => first-post-here.md} (82%) diff --git a/config.toml b/config.toml index 11f7e30..a92a53c 100644 --- a/config.toml +++ b/config.toml @@ -4,5 +4,11 @@ title = 'Public record of Motiejus Jakštys' theme = 'default' author = "Motiejus Jakštys" +[permalinks] + posts = '/:year/:title/' + +[Params] + dateFormat = "2006-01-02" + [outputs] home = ['HTML', 'RSS'] diff --git a/content/posts/my-first-post.md b/content/posts/first-post-here.md similarity index 82% rename from content/posts/my-first-post.md rename to content/posts/first-post-here.md index c7a983c..9a495ef 100644 --- a/content/posts/my-first-post.md +++ b/content/posts/first-post-here.md @@ -1,7 +1,6 @@ --- -title: "My First Post" +title: "First Post Here" date: 2022-04-11T18:16:36+03:00 -draft: true --- This is the first post of the third iteration of jakstys.lt. The me-human is diff --git a/themes/default/static/css/main.css b/themes/default/static/css/main.css index 44c436c..3010a37 100644 --- a/themes/default/static/css/main.css +++ b/themes/default/static/css/main.css @@ -77,17 +77,17 @@ hr { height: 1px } -a { - color: #00f; - word-wrap: break-word +a, a:visited, a:hover { + color: #007bff; + word-wrap: break-word; } -a:visited { - color: #009 +a, a:visited { + text-decoration: none; } a:hover { - color: #f80; + text-decoration: underline; } header a, @@ -316,3 +316,28 @@ nav#TableOfContents ul { content: ''; } } + +@media (prefers-color-scheme: dark) { + body { + color: #ccc; + background-color: #222; + } + header a, + header a:visited, + footer a, + footer a:visited, + h1 a, + h1 a:visited, + h2 a, + h2 a:visited, + h3 a, + h3 a:visited, + h4 a, + h4 a:visited, + h5 a, + h5 a:visited, + h6 a, + h6 a:visited { + color: #ccc; + } +}