diff --git a/cypress/e2e/seo.cy.js b/cypress/e2e/seo.cy.js index 6dde00b..851a511 100644 --- a/cypress/e2e/seo.cy.js +++ b/cypress/e2e/seo.cy.js @@ -122,7 +122,7 @@ describe("Basic Tags Without URL", () => { cy.get('head meta[property="og:url"]').should( "have.attr", "content", - "http://localhost:4321/ogBasicTagsWithoutUrl/" + "http://localhost:4321/ogBasicTagsWithoutUrl" ); }); }); @@ -384,6 +384,7 @@ describe("Extended link tags", () => { cy.get('head link[rel="icon"]').should("have.attr", "href", "/favicon.ico"); cy.get('head link[rel="icon"]').should("have.attr", "rel", "icon"); cy.get('head link[rel="icon"]').should("have.attr", "type", "image/svg+xml"); + cy.get('head link[rel="icon"]').should("have.attr", "sizes", "60x60"); }); }); diff --git a/src/SEO.astro b/src/SEO.astro index 63930cf..559f50e 100644 --- a/src/SEO.astro +++ b/src/SEO.astro @@ -9,9 +9,10 @@ import LanguageAlternatesTags from "./components/LanguageAlternatesTags.astro"; export type TwitterCardType = "summary" | "summary_large_image" | "app" | "player"; -export interface Link extends HTMLLinkElement { +export interface Link extends Omit { prefetch: boolean; crossorigin: string; + sizes: string; } export interface Meta extends HTMLMetaElement { diff --git a/src/pages/extendedLinkTags.astro b/src/pages/extendedLinkTags.astro index b3f4534..bde81f7 100644 --- a/src/pages/extendedLinkTags.astro +++ b/src/pages/extendedLinkTags.astro @@ -10,7 +10,7 @@ import SEO from "../SEO.astro"; title="Francis York Morgan" description="Agent" canonical="Zach" - extend={{ link: [{ rel: "icon", href: "/favicon.ico", type:"image/svg+xml" }] }} + extend={{ link: [{ rel: "icon", href: "/favicon.ico", type:"image/svg+xml", sizes: "60x60" }] }} /> Test