From 8591d2db71a4a269cf3b1c5808107cb8810cd32f Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Tue, 7 Mar 2023 11:16:11 -0500 Subject: [PATCH] Ship basic dark mode and publish small post about these changes --- build/about/index.html | 14 ++-- build/atom.xml | 22 ++++- build/dark-mode/index.html | 129 +++++++++++++++++++++++++++++ build/index.html | 15 ++-- build/macos/index.html | 14 ++-- build/markdown-examples/index.html | 14 ++-- build/posts.tsv | 1 + build/websites/index.html | 14 ++-- header.html | 14 ++-- posts/dark-mode.md | 19 +++++ 10 files changed, 218 insertions(+), 38 deletions(-) create mode 100644 build/dark-mode/index.html create mode 100644 posts/dark-mode.md diff --git a/build/about/index.html b/build/about/index.html index 7840b56..9c1671a 100644 --- a/build/about/index.html +++ b/build/about/index.html @@ -3,6 +3,8 @@ + + About `barf` + + + + +
+

Supporting Basic Dark Mode

+

2023-03-07

+

The default barf site generator now supports basic dark mode functionality. This has been achieved by including the standard color-scheme meta tag in the core header.html file:

+
<meta name="color-scheme" content="dark light">
+
+

This change also ships with some minor updates to the default blockquote design. You can see an example below:

+

This is a really cool blockquote

+
+

Minor Caveat

+

Unfortunately, Safari still has minor ahref / link color issue when defaulting to browser dark mode. If this is a problem for your own build of barf, take a look at a solution I wrote about here.

+

Personally, I can't be bothered to add that extra code to this project. The Safari team needs to get their shit together and fix such a simple bug. Plus, you shouldn't be using Safari anyway - it's proprietary garbage.

+ \ No newline at end of file diff --git a/build/index.html b/build/index.html index 057cbc8..f8b04a5 100644 --- a/build/index.html +++ b/build/index.html @@ -3,6 +3,8 @@ + + barf