From 8834aafd7c84d6d908eeccd183c1fff7f21d05a5 Mon Sep 17 00:00:00 2001 From: Artin Date: Tue, 3 Sep 2024 02:45:55 +0330 Subject: [PATCH] feat(website): add navbar theme-based OhMyPosh icon switching Add srcDark feature to switch between light and dark OhMyPosh icons in navigation bar (located in top of website) based on user's system theme or user's browser theme preference. --- website/docusaurus.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index b186b369..afe41b57 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -30,7 +30,8 @@ module.exports = { title: 'Oh My Posh', logo: { alt: 'Oh My Posh Logo', - src: 'img/logo.svg', + src: 'img/logo-dark.svg', + srcDark: 'img/logo-light.svg', }, items: [ {