Replies: 1 comment 1 reply
-
This is something that could be solved with CSS. Although the theme doesn't include a direct way to support this you should be able to use Tailwind syntax to show and hide the blocks based upon the user's display preference. Something like the following should get the desired result: <!-- Only visible in light appearance -->
<div class="inline dark:hidden">
{{< figure src="image.png" >}}
</div>
<!-- Only visible in dark appearance -->
<div class="hidden dark:inline">
{{< figure src="image.png" >}}
</div> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote an article that includes screenshots from a website. The website that I'm referencing also has a dark mode. I took screenshots both in dark and light mode.
Is there a way to specify in an article that I want to display a different picture based on which mode the reader currently is in?
Beta Was this translation helpful? Give feedback.
All reactions