diff --git a/src/posts/2024/adding-a-light-dark-theme-toggle.md b/src/posts/2024/adding-a-light-dark-theme-toggle.md index 94319bf0..bf86f701 100644 --- a/src/posts/2024/adding-a-light-dark-theme-toggle.md +++ b/src/posts/2024/adding-a-light-dark-theme-toggle.md @@ -26,6 +26,7 @@ I built the button as a short Liquid partial: The `client-side` class above hides the button should the user have JavaScript disabled: +{% raw %]} ```html ``` +{% endraw %} And JavaScript is used to control the behavior of the toggle — first, in the `` of my base template: