feat: favicons

This commit is contained in:
TrèsAbhi committed 2025-09-27 13:39:08 -05:00
1 parent a55ab5e7ee
commit 27c8b348bb
4 files changed
+27 -2

No files matched your search

BIN
View File
Binary file not shown.
+23 -1
View File
@@ -1,8 +1,30 @@
// @ts-check // @ts-check
import strings from "@blitzkit/i18n/strings/en.json";
import favicons from "astro-favicons";
import { defineConfig } from "astro/config"; import { defineConfig } from "astro/config";
import react from "@astrojs/react"; import react from "@astrojs/react";
export default defineConfig({ export default defineConfig({
integrations: [react()], devToolbar: { enabled: false },
integrations: [
favicons({
name: strings.common.name,
short_name: strings.common.name,
manifest: { start_url: "/", display_override: ["minimal-ui"] },
icons: {
windows: true,
android: true,
appleIcon: true,
appleStartup: true,
favicons: true,
yandex: true,
},
}),
react(),
],
}); });
+1
View File
@@ -12,6 +12,7 @@
"@types/react": "^19.1.14", "@types/react": "^19.1.14",
"@types/react-dom": "^19.1.9", "@types/react-dom": "^19.1.9",
"astro": "^5.14.1", "astro": "^5.14.1",
"astro-favicons": "^3.1.5",
"react": "^19.1.1", "react": "^19.1.1",
"react-dom": "^19.1.1" "react-dom": "^19.1.1"
} }
@@ -1,5 +1,7 @@
--- ---
import { localizedHTML as favicons } from "astro-favicons/middleware"; import { localizedHTML as favicons } from "astro-favicons/middleware";
const { locale } = Astro.params;
--- ---
<Fragment set:html={favicons(Astro.currentLocale)} /> <Fragment set:html={favicons(locale)} />