feat(website): add theme-based favicon switching

This commit is contained in:
Artin 2024-09-10 10:03:36 +03:30 committed by GitHub
parent 3e6dfd6fdd
commit 72b0cda800
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 34 additions and 1 deletions

View file

@ -5,7 +5,7 @@ module.exports = {
tagline: 'A prompt theme engine for any shell.', tagline: 'A prompt theme engine for any shell.',
url: 'https://ohmyposh.dev', url: 'https://ohmyposh.dev',
baseUrl: '/', baseUrl: '/',
favicon: 'img/favicon.ico', favicon: 'img/favicons.svg',
organizationName: 'jandedobbeleer', organizationName: 'jandedobbeleer',
projectName: 'oh-my-posh', projectName: 'oh-my-posh',
onBrokenLinks: 'ignore', onBrokenLinks: 'ignore',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 30.851 30.851" xml:space="preserve">
<style>
#c43_terminal {
fill: black;
}
polygon, rect {
fill: black;
}
@media (prefers-color-scheme: dark) {
#c43_terminal {
fill: white;
}
polygon, rect {
fill: white;
}
}
</style>
<g>
<g id="c43_terminal">
<path d="M28.645,2.203H2.204C0.987,2.203,0,3.188,0,4.405v22.038c0,1.216,0.987,2.204,2.204,2.204h26.441
c1.215,0,2.206-0.988,2.206-2.204V4.405C30.851,3.188,29.859,2.203,28.645,2.203z M7.162,3.857c0.607,0,1.102,0.491,1.102,1.103
c0,0.607-0.494,1.098-1.102,1.098c-0.611,0-1.104-0.49-1.104-1.098C6.059,4.349,6.551,3.857,7.162,3.857z M3.855,3.857
c0.608,0,1.102,0.491,1.102,1.103c0,0.607-0.493,1.098-1.102,1.098S2.752,5.568,2.752,4.96C2.753,4.349,3.246,3.857,3.855,3.857z
M28.645,26.444H2.204V7.735h26.441V26.444z"/>
<polygon points="12.351,12.264 5.275,9.028 5.275,10.589 10.746,12.929 10.746,12.958 5.275,15.294 5.275,16.854 12.351,13.618"/>
<rect x="15.682" y="12.199" width="3.855" height="1.486"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB