mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: favicons
This commit is contained in:
1 parent
a55ab5e7ee
commit
27c8b348bb
4 files changed
+27
-2
No files matched your search
@@ -1,8 +1,30 @@
|
||||
// @ts-check
|
||||
import strings from "@blitzkit/i18n/strings/en.json";
|
||||
import favicons from "astro-favicons";
|
||||
import { defineConfig } from "astro/config";
|
||||
|
||||
import react from "@astrojs/react";
|
||||
|
||||
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(),
|
||||
],
|
||||
});
|
||||
@@ -12,6 +12,7 @@
|
||||
"@types/react": "^19.1.14",
|
||||
"@types/react-dom": "^19.1.9",
|
||||
"astro": "^5.14.1",
|
||||
"astro-favicons": "^3.1.5",
|
||||
"react": "^19.1.1",
|
||||
"react-dom": "^19.1.1"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
---
|
||||
import { localizedHTML as favicons } from "astro-favicons/middleware";
|
||||
|
||||
const { locale } = Astro.params;
|
||||
---
|
||||
|
||||
<Fragment set:html={favicons(Astro.currentLocale)} />
|
||||
<Fragment set:html={favicons(locale)} />
|
||||
Reference in new issue
Block a user