Browse Source

cleanup: remove URL theme fragment from console image (#12891)

* cleanup: remove URL theme fragment from console image

* README: fix typo
K.B.Dharun Krishna 9 months ago
parent
commit
71aa769778
1 changed files with 5 additions and 2 deletions
  1. 5 2
      README.md

+ 5 - 2
README.md

@@ -43,8 +43,11 @@ $ man tar
 There seems to be room for simpler help pages, focused on practical examples.
 How about:
 
-![Screenshot of the tldr client displaying the tar command in light mode.](images/tldr-light.png#gh-light-mode-only)
-![Screenshot of the tldr client displaying the tar command in dark mode.](images/tldr-dark.png#gh-dark-mode-only)
+<picture>
+    <source media="(prefers-color-scheme: dark)" srcset="https://github.com/tldr-pages/tldr/blob/main/images/tldr-dark.png">
+    <source media="(prefers-color-scheme: light)" srcset="https://github.com/tldr-pages/tldr/blob/main/images/tldr-light.png">
+    <img alt="Screenshot of the tldr client displaying the tar command." src="https://github.com/tldr-pages/tldr/blob/main/images/tldr-dark.png">
+</picture>
 
 This repository is just that: an ever-growing collection of examples
 for the most common UNIX, Linux, macOS, SunOS, Android and Windows command-line tools.