diff options
author | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2023-12-25 09:29:25 -0500 |
---|---|---|
committer | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2023-12-25 09:35:11 -0500 |
commit | bbafd350a44005f31ddff4c7e433353a5f3a9acf (patch) | |
tree | 9a692ab038c0d3d77b6d24ecb51f747200fe07c0 /README.md | |
parent | 8b24997783a193bb0d5b815fa6154621d77d8495 (diff) |
readme: update method to show theme-based logo
see https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#specifying-the-theme-an-image-is-shown-to
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md index 5e616eff2f52e..481ada0565f82 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ <p align="center"> - <a href="https://nixos.org#gh-light-mode-only"> - <img src="https://raw.githubusercontent.com/NixOS/nixos-homepage/master/logo/nixos-hires.png" width="500px" alt="NixOS logo"/> - </a> - <a href="https://nixos.org#gh-dark-mode-only"> - <img src="https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nixos-white.png" width="500px" alt="NixOS logo"/> + <a href="https://nixos.org"> + <picture> + <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/NixOS/nixos-homepage/master/logo/nixos-hires.png"> + <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nixos-white.png"> + <img src="https://raw.githubusercontent.com/NixOS/nixos-homepage/master/logo/nixos-hires.png" width="500px" alt="NixOS logo"> + </picture> </a> </p> |