We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
at the Header.astro we have the { LOGO_IMAGE.enable ? ( <img src={`/assets/${LOGO_IMAGE.svg ? "logo.svg" : "logo.png"}`} alt={SITE.title} width={LOGO_IMAGE.width} height={LOGO_IMAGE.height} class="header-icon" /> ) : ( SITE.title ) }
Header.astro
{ LOGO_IMAGE.enable ? ( <img src={`/assets/${LOGO_IMAGE.svg ? "logo.svg" : "logo.png"}`} alt={SITE.title} width={LOGO_IMAGE.width} height={LOGO_IMAGE.height} class="header-icon" /> ) : ( SITE.title ) }
this img is referencing a svg. how can i set the color of the svg to be on the theme?
The text was updated successfully, but these errors were encountered:
I don't think there's any build-in way to update svg inside <img /> tag. So, what you can do is replace <img /> tag with your svg logo.
<img />
From this
<a href="/" class="logo whitespace-nowrap"> { LOGO_IMAGE.enable ? ( <img src={`/assets/${LOGO_IMAGE.svg ? "logo.svg" : "logo.png"}`} alt={SITE.title} width={LOGO_IMAGE.width} height={LOGO_IMAGE.height} /> ) : ( SITE.title ) } </a>
To this
<a href="/" class="logo whitespace-nowrap"> <svg class="fill-skin-base" // others /> </a>
Sorry, something went wrong.
No branches or pull requests
at the
Header.astro
we have the{ LOGO_IMAGE.enable ? ( <img src={`/assets/${LOGO_IMAGE.svg ? "logo.svg" : "logo.png"}`} alt={SITE.title} width={LOGO_IMAGE.width} height={LOGO_IMAGE.height} class="header-icon" /> ) : ( SITE.title ) }
this img is referencing a svg. how can i set the color of the svg to be on the theme?
The text was updated successfully, but these errors were encountered: