jonasmerlin / astro-seo

Makes it easy to add information that is relevant for SEO to your Astro app.
MIT License
908 stars 50 forks source link

💡 Feature Request: Type extend.link #69

Closed Marius-Romanus closed 1 year ago

Marius-Romanus commented 1 year ago

Hello, it would be nice if the Link could be passed an optional parameter that is the "type", to be able to do, for example:

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />

Greetings!

jonasmerlin commented 1 year ago

Hey @Marius-Romanus, this should already be possible. Just do the following:

<SEO
      extend={{ link: [{ rel: "icon", href: "/favicon.ico", type:"image/svg+xml" }] }}
/>
Marius-Romanus commented 1 year ago

It works perfectly, thanks!