Skip to content

Commit

Permalink
Update Astro configuration and package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyu1818 committed Nov 22, 2023
1 parent 9966023 commit a58fd71
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 48 deletions.
13 changes: 3 additions & 10 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import { defineConfig } from 'astro/config'

// https://astro.build/config
import tailwind from '@astrojs/tailwind'

// https://astro.build/config
import sitemap from '@astrojs/sitemap'

// https://astro.build/config
import prefetch from '@astrojs/prefetch'

import robotsTxt from 'astro-robots-txt'

// https://astro.build/config
export default defineConfig({
site: 'https://zhangyu.dev/',
integrations: [tailwind(), sitemap(), prefetch(), robotsTxt()],
prefetch: true,
site: 'https://www.zhangyu.dev/',
integrations: [tailwind(), sitemap(), robotsTxt()],
})
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
"prepare": "husky install"
},
"dependencies": {
"@astrojs/prefetch": "^0.4.1",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.1",
"@astrojs/tailwind": "^5.0.2",
"@octokit/core": "^5.0.1",
"@zhangyu1818/github-markdown-css": "^5.3.0",
"astro": "^3.3.0",
"astro": "^3.5.7",
"bg-css": "^1.0.1",
"dayjs": "^1.11.7",
"motion-wave": "^0.0.5"
Expand Down
69 changes: 34 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/layouts/base/HeadLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ const { title = 'zhangyu1818', description = 'zhangyu1818的博客' } = Astro.pr
<meta charset="utf-8" />
<meta name="description" content={description} />
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#fff" />
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#000" />
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#18181b" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5" />
<meta name="google-site-verification" content="-EgIoAC_kAmCy86ZteXPlEBcl3e76-DVX3HLjXhRudg" />
<link rel="canonical" href={Astro.url} />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
Expand Down

1 comment on commit a58fd71

@vercel
Copy link

@vercel vercel bot commented on a58fd71 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.