Skip to content

Commit

Permalink
fix: lint/format
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed May 16, 2024
1 parent b0602ab commit 07ff281
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .vscode/app.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"\t<MainContent class=\"container grid content-start gap-y-8 py-8\">",
"\t\t<PageTitle>{{ t(\"${1:Name}Page.title\") }}</PageTitle>",
"\t</MainContent>",
"</template>",
],
},
"</template>"
]
}
}
2 changes: 1 addition & 1 deletion composables/use-page-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function usePageMetadata(params: UsePageMetadataParams): void {
? [
{ name: "description", content: params.description },
{ property: "og:description", content: params.description },
]
]
: []),
],
});
Expand Down
12 changes: 9 additions & 3 deletions e2e/tests/app/i18n.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,15 @@ test.describe("i18n", () => {

expect(links).toEqual(
expect.arrayContaining([
`<link id="i18n-alt-de" rel="alternate" href="${createAbsoluteUrl(`/de${pathname}`)}" hreflang="de">`,
`<link id="i18n-alt-en" rel="alternate" href="${createAbsoluteUrl(`/en${pathname}`)}" hreflang="en">`,
`<link id="i18n-xd" rel="alternate" href="${createAbsoluteUrl(`/en${pathname}`)}" hreflang="x-default">`,
`<link id="i18n-alt-de" rel="alternate" href="${createAbsoluteUrl(
`/de${pathname}`,
)}" hreflang="de">`,
`<link id="i18n-alt-en" rel="alternate" href="${createAbsoluteUrl(
`/en${pathname}`,
)}" hreflang="en">`,
`<link id="i18n-xd" rel="alternate" href="${createAbsoluteUrl(
`/en${pathname}`,
)}" hreflang="x-default">`,
]),
);
}
Expand Down
4 changes: 2 additions & 2 deletions server/routes/robots.txt.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const config = isIndexable
Allow: "/",
Host: baseUrl,
Sitemap: String(createUrl({ baseUrl, pathname: "sitemap.xml" })),
}
}
: {
"User-Agent": "*",
Disallow: "/",
Host: baseUrl,
};
};

const robots = Object.entries(config)
.map(([key, value]) => {
Expand Down

0 comments on commit 07ff281

Please sign in to comment.