Repository navigation
更新 - #764
Closed
Uranus-Queen wants to merge 26 commits into
Closed
更新#764Uranus-Queen wants to merge 26 commits into
Uranus-Queen wants to merge 26 commits into
Conversation
feat(about): 更新关于页面内容,添加占位图片
|
@Uranus-Queen is attempting to deploy a commit to the zephyirdgmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Customizes an Astro-based blog from the Fuwari demo template into a personal site, with updates to branding/content and sitemap generation behavior.
Changes:
- Update site branding/config (title, language, banner, profile links) and add a Bing Webmaster verification meta tag.
- Adjust markdown styling (link styling and code copy button styling).
- Add/modify sitemap generation (Astro sitemap config + post-build custom sitemap formatting script) and remove demo content posts.
Reviewed changes
Copilot reviewed 19 out of 25 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/styles/markdown.css | Tweaks markdown link styling and replaces copy button styling with explicit CSS. |
| src/layouts/Layout.astro | Adds msvalidate.01 meta tag; minor formatting changes in PhotoSwipe config. |
| src/content/spec/about.md | Replaces demo “About” content with a new About page and external images. |
| src/content/posts/video.md | Removes demo “video” post. |
| src/content/posts/markdown.md | Removes demo “markdown” post. |
| src/content/posts/markdown-extended.md | Removes demo “markdown extended” post. |
| src/content/posts/guide/index.md | Removes demo guide content. |
| src/content/posts/expressive-code.md | Removes demo expressive-code post. |
| src/content/posts/draft.md | Removes demo draft post. |
| src/config.ts | Updates site identity, language, banner, avatar, and social links. |
| scripts/generate-sitemap.js | Adds a custom sitemap generator that writes formatted sitemap outputs into dist/. |
| package.json | Updates Astro-related versions and runs the custom sitemap script after build. |
| astro.config.mjs | Sets the production site URL and configures @astrojs/sitemap options. |
| .vscode/settings.json | Changes workspace editor settings (validation, autosave, formatting). |
| (path not shown in diff) | Adds multiple new markdown posts (paths missing in provided diff). |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+13
to
+38
| const fixedPages = [ | ||
| { | ||
| loc: '/', | ||
| lastmod: new Date().toISOString(), | ||
| changefreq: 'daily', | ||
| priority: '0.5' | ||
| }, | ||
| { | ||
| loc: '/about', | ||
| lastmod: new Date().toISOString(), | ||
| changefreq: 'daily', | ||
| priority: '0.5' | ||
| }, | ||
| { | ||
| loc: '/about/', | ||
| lastmod: new Date().toISOString(), | ||
| changefreq: 'daily', | ||
| priority: '0.5' | ||
| }, | ||
| { | ||
| loc: '/archive/', | ||
| lastmod: new Date().toISOString(), | ||
| changefreq: 'daily', | ||
| priority: '0.5' | ||
| } | ||
| ]; |
Comment on lines
+49
to
+64
| files.forEach(file => { | ||
| if (file.endsWith('.md') || file.endsWith('.mdx')) { | ||
| const filePath = path.join(postsDir, file); | ||
| const stat = fs.statSync(filePath); | ||
|
|
||
| // 获取文件名(不含扩展名)作为slug | ||
| const slug = file.replace(/\.(md|mdx)$/, ''); | ||
|
|
||
| posts.push({ | ||
| loc: `/posts/${encodeURIComponent(slug)}/`, | ||
| lastmod: stat.mtime.toISOString(), | ||
| changefreq: 'weekly', | ||
| priority: '0.7' | ||
| }); | ||
| } | ||
| }); |
| "start": "astro dev", | ||
| "check": "astro check", | ||
| "build": "astro build && pagefind --site dist", | ||
| "build": "astro build && pagefind --site dist && node scripts/generate-sitemap.js", |
Comment on lines
+104
to
114
| sitemap({ | ||
| filter: (page) => !page.includes('/404'), // 1️⃣ 先过滤垃圾页 | ||
| customPages: ['https://zhangjun.xyz/about'], // 2️⃣ 非 src/pages 的静态页 | ||
| changefreq: 'daily', | ||
| priority: 0.5, // 3️⃣ 权重 - 设置为单个数字 | ||
| lastmod: new Date(), // 4️⃣ 统一时间戳 | ||
| serialize: async (item) => { | ||
| // 返回默认的序列化对象,保持默认行为 | ||
| return item; | ||
| } | ||
| }), |
Comment on lines
+23
to
24
| @apply relative bg-none font-medium text-[var(--primary)] | ||
| underline decoration-[var(--link-underline)] decoration-1 decoration-dashed underline-offset-4; |
Comment on lines
+64
to
+66
| @apply opacity-0 shadow-lg shadow-black/50 absolute active:scale-90 h-8 w-8 top-3 right-3 text-sm rounded-lg transition-all ease-in-out z-20 cursor-pointer; | ||
| background-color: #374151; /* equivalent to btn-regular-dark */ | ||
| color: white; |
Comment on lines
+2
to
+4
| "css.validate": false, | ||
| "less.validate": false, | ||
| "scss.validate": false, |
… improve utility functions - Updated blog post content in Chinese with new images and improved formatting. - Added new styles for markdown and layout components, including transitions and scrollbar styles. - Refactored utility functions for better type safety and consistency. - Removed deprecated Tailwind configuration and integrated new styling approach. - Introduced a new content configuration file with Zod schema for post validation. - Added CLAUDE.md for project guidance and setup instructions.
…ilwind 4 dependency versions # Conflicts: # package.json # pnpm-lock.yaml
Author
|
已在本地合并 upstream/main 并解决 package.json / pnpm-lock.yaml 冲突(保留本仓库 Astro 6 / Tailwind 4 的依赖版本),冲突已消除。此 PR 包含个人博客内容与配置,并非需要合并进上游的改动,故关闭。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Checklist
Related Issue
Changes
How To Test
Screenshots (if applicable)
Additional Notes