mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
refactor: hide link for manifest in development
This commit is contained in:
@@ -3,6 +3,7 @@ import '../styles/global.css';
|
||||
import { Sprite } from 'astro-icon';
|
||||
import { SEO } from 'astro-seo';
|
||||
import { site } from '../data/site';
|
||||
import { isProduction } from '../utils';
|
||||
|
||||
import ThemeProvider from '../components/ThemeProvider.astro';
|
||||
import PageHeader from '../components/PageHeader.astro';
|
||||
@@ -42,6 +43,11 @@ const schema = JSON.stringify({
|
||||
name: site.author,
|
||||
url: site.url,
|
||||
});
|
||||
|
||||
const webManifest = isProduction && {
|
||||
rel: 'manifest',
|
||||
href: '/manifest.webmanifest',
|
||||
};
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
@@ -91,10 +97,7 @@ const schema = JSON.stringify({
|
||||
rel: 'apple-touch-icon',
|
||||
href: '/assets/images/branding/favicons/apple-touch-icon.png',
|
||||
},
|
||||
{
|
||||
rel: 'manifest',
|
||||
href: '/manifest.webmanifest',
|
||||
},
|
||||
{ ...webManifest },
|
||||
{
|
||||
as: 'font',
|
||||
crossorigin: '',
|
||||
@@ -133,12 +136,6 @@ const schema = JSON.stringify({
|
||||
title: 'Stefan Imhoff (AI Art)',
|
||||
href: site.url + '/rss-ai-art.xml',
|
||||
},
|
||||
{
|
||||
rel: 'alternate',
|
||||
type: 'application/rss+xml',
|
||||
title: 'Stefan Imhoff (Projects)',
|
||||
href: site.url + '/rss-projects.xml',
|
||||
},
|
||||
],
|
||||
meta: [
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
|
||||
Reference in New Issue
Block a user