feat: add manifest.webmanifest

This commit is contained in:
Stefan Imhoff
2023-06-13 10:19:34 +02:00
parent 65fe960af0
commit eac9efd4f3
3 changed files with 62 additions and 2 deletions

View File

@@ -4,10 +4,12 @@ import prefetch from '@astrojs/prefetch';
import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
import { astroImageTools } from 'astro-imagetools';
import webmanifest from 'astro-webmanifest';
import { defineConfig } from 'astro/config';
import { site } from './src/data/site';
import { remarkReadingTime, remarkWidont } from './src/utils';
// https://astro.build/config
export default defineConfig({
site: 'https://www.stefanimhoff.de',
markdown: {
@@ -32,5 +34,26 @@ export default defineConfig({
page !== 'https://www.stefanimhoff.de/cv/' &&
page !== 'https://www.stefanimhoff.de/imprint/',
}),
webmanifest({
name: site.title,
icons: [
{
src: '/assets/images/branding/favicons/favicon-192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/assets/images/branding/favicons/favicon-512.png',
sizes: '512x512',
type: 'image/png',
},
],
short_name: site.title,
description: site.description,
start_url: '/',
theme_color: '#e7e6e4',
background_color: '#e7e6e4',
display: 'standalone',
}),
],
});