Skip to content

Commit

Permalink
chore: update assets file
Browse files Browse the repository at this point in the history
  • Loading branch information
ddiu8081 committed Mar 24, 2023
1 parent 5e7b48e commit a29e470
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
13 changes: 6 additions & 7 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,28 @@ export default defineConfig({
process.env.OUTPUT === 'vercel' && vercelDisableBlocks(),
process.env.OUTPUT === 'netlify' && vercelDisableBlocks(),
process.env.OUTPUT !== 'netlify' && VitePWA({
includeAssets: ['favicon.svg'],
registerType: 'autoUpdate',
manifest: {
name: 'ChatGPT-API Demo',
short_name: 'ChatGPT-API Demo',
short_name: 'ChatGPT Demo',
description: 'A demo repo based on OpenAI API',
theme_color: '#212129',
background_color: '#ffffff',
icons: [
{
src: 'icon-192.png',
src: 'pwa-192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'icon-512.png',
src: 'pwa-512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: 'icon-512-maskable.png',
sizes: '512x512',
type: 'image/png',
src: 'icon.svg',
sizes: '32x32',
type: 'image/svg',
purpose: 'any maskable',
},
],
Expand Down
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/icon-512-maskable.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
13 changes: 7 additions & 6 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ const { title } = Astro.props;
<html>
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0,viewport-fit=cover"
/>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover">
<link rel="icon" type="image/svg+xml" href="/icon.svg">
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180">
<link rel="mask-icon" href="/icon.svg" color="#FFFFFF">
<meta name="theme-color" content="#212129">
<meta name="generator" content={Astro.generator}>
<title>{title}</title>
<meta name="description" content="A simple blog">
{
import.meta.env.HEAD_SCRIPTS
? (
Expand Down

0 comments on commit a29e470

Please sign in to comment.