mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
feat: add manifest.webmanifest
This commit is contained in:
@@ -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',
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user