From 4743c427c59151c6f18d925d617a1bc9c00cd999 Mon Sep 17 00:00:00 2001 From: Tomas Sedovic Date: Mon, 8 Dec 2025 16:31:53 +0100 Subject: [PATCH] Fix dark mode support for blog posts The Rust blog has a light/dark mode switcher people are relying on. Right now, generating a blog post and copying it as-is makes those blog posts unreadable when dark mode is enabled. Eric Huss fixed that manually for the September and October updates: https://github.com/rust-lang/blog.rust-lang.org/pull/1731/commits/823ab6508099e1130e54a16bb548e4cc52a6e654 This is using that same fix at the source. --- templates/goal_card.hbs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/goal_card.hbs b/templates/goal_card.hbs index be5a0685..17968c75 100644 --- a/templates/goal_card.hbs +++ b/templates/goal_card.hbs @@ -7,7 +7,7 @@ - +
@@ -32,7 +32,7 @@ {{#if tldr}} -
+
TL;DR. {{{markdown_to_html tldr}}}
{{/if}} @@ -40,7 +40,7 @@ {{#if has_help_wanted}} {{#each help_wanted}} -
+
Help wanted: {{{markdown_to_html text}}}
{{/each}} @@ -49,14 +49,14 @@ {{#if comments}}
- + {{{markdown_to_html details_summary}}} -
+
{{#each comments}}
Comment by {{author}} posted on {{created_at}}: -
+
{{{markdown_to_html body}}}
@@ -65,7 +65,7 @@
{{else}}
- + {{details_summary}}
Progress {{>progress is_closed=is_closed progress=progress}}