mirror of
https://github.com/kremalicious/umami.git
synced 2024-07-01 06:02:02 +02:00
Include version for preload.
This commit is contained in:
parent
3fab09d626
commit
13432ede22
|
@ -24,6 +24,7 @@ const Intl = ({ children }) => {
|
|||
export default function App({ Component, pageProps }) {
|
||||
const { basePath } = useRouter();
|
||||
const { dir } = useLocale();
|
||||
const version = process.env.VERSION;
|
||||
|
||||
return (
|
||||
<Intl>
|
||||
|
@ -34,7 +35,12 @@ export default function App({ Component, pageProps }) {
|
|||
<link rel="icon" type="image/png" sizes="16x16" href={`${basePath}/favicon-16x16.png`} />
|
||||
<link rel="manifest" href={`${basePath}/site.webmanifest`} />
|
||||
<link rel="mask-icon" href={`${basePath}/safari-pinned-tab.svg`} color="#5bbad5" />
|
||||
<link rel="preload" href="https://i.umami.is/umami.png" as="image" type="image/png" />
|
||||
<link
|
||||
rel="preload"
|
||||
href={`https://i.umami.is/umami.png?v=${version}`}
|
||||
as="image"
|
||||
type="image/png"
|
||||
/>
|
||||
<meta name="msapplication-TileColor" content="#da532c" />
|
||||
<meta name="theme-color" content="#fafafa" media="(prefers-color-scheme: light)" />
|
||||
<meta name="theme-color" content="#2f2f2f" media="(prefers-color-scheme: dark)" />
|
||||
|
|
Loading…
Reference in New Issue
Block a user