1171 words
6 minutes
Simple Guides for Mizuki
2025-09-10
统计加载中...

This blog template is built with Astro. For the things that are not mentioned in this guide, you may find the answers in the Astro Docs.

Front-matter of Posts#

---
title: My First Blog Post
published: 2023-09-09
description: This is the first post of my new Astro blog.
image: ./cover.jpg
tags: [Foo, Bar]
category: Front-end
draft: false
---

AttributeDescription
titleThe title of the post.
publishedThe date the post was published.
pinnedWhether this post is pinned to the top of the post list.
descriptionA short description of the post. Displayed on index page.
imageThe cover image path of the post.
1. Start with http:// or https://: Use web image
2. Start with /: For image in public dir
3. With none of the prefixes: Relative to the markdown file
tagsThe tags of the post.
categoryThe category of the post.
licenseNameThe license name for the post content.
authorThe author of the post.
sourceLinkThe source link or reference for the post content.
draftIf this post is still a draft, which won’t be displayed.

表格示例#

基本表格#

这是一个简单的表格示例,展示Markdown表格的基本语法:

功能语法示例
标题# 标题# 一级标题
粗体**粗体**粗体文字
斜体*斜体*斜体文字
链接[文本](链接)Astro官网
代码`代码`console.log()

对齐表格#

您可以使用冒号来指定列的对齐方式:

左对齐居中对齐右对齐
文本左文本中文本右
内容左内容中内容右
数据左数据中数据右

复杂表格示例#

下面是一个更复杂的表格,展示博客配置选项:

配置项类型默认值描述必需
sitestring-网站URL
basestring/基础路径
titlestring-页面标题
descriptionstring-页面描述
imagestring-封面图片

表格使用技巧#

  1. 使用管道符 | 分隔列
  2. 使用连字符 --- 分隔表头和内容
  3. 对齐方式
    • :--- 左对齐
    • :--: 居中对齐
    • ---: 右对齐
  4. 内容换行:使用HTML的<br/>标签

Where to Place the Post Files#

Your post files should be placed in src/content/posts/ directory. You can also create sub-directories to better organize your posts and assets.

src/content/posts/
├── post-1.md
└── post-2/
├── cover.png
└── index.md

高级表格示例#

项目进度跟踪表#

任务负责人状态开始日期截止日期进度备注
博客主题定制Alice✅ 完成2025-09-012025-09-10100%响应式设计完成
内容管理系统Bob🔄 进行中2025-09-052025-09-2075%API集成中
SEO优化Carol⏳ 待开始2025-09-152025-09-250%等待内容就绪
性能测试David✅ 完成2025-08-282025-09-05100%加载速度优化完成

技术栈对比表#

技术类型学习曲线性能社区支持适用场景推荐指数
Astro静态站点生成器⭐⭐⭐⭐⭐⭐⭐⭐⭐内容型网站⭐⭐⭐⭐
Next.jsReact框架⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐复杂Web应用⭐⭐⭐⭐
VuePress文档生成器⭐⭐⭐⭐⭐⭐⭐⭐技术文档⭐⭐⭐
Hugo静态站点生成器⭐⭐⭐⭐⭐⭐⭐⭐⭐博客/新闻站⭐⭐⭐

博客功能特性表#

功能模块子功能实现状态优先级技术实现依赖项
文章系统Markdown支持P0remark/rehype-
代码高亮P0expressive-code-
数学公式P1KaTeXremark-math
评论系统Twikoo集成P1Twikoo外部服务
邮件通知🔄P2Node.jsSMTP配置
搜索功能全文搜索P1Pagefind构建时生成
实时搜索P3Algolia付费服务

文件类型支持表#

文件类型扩展名支持程度处理方式备注
Markdown.md✅ 完全支持Astro内置主要内容格式
MDX.mdx✅ 完全支持@astrojs/mdx支持React组件
图片.jpg/.png✅ 完全支持静态资源自动优化
PDF.pdf⚠️ 有限支持链接引用直接下载
视频.mp4⚠️ 有限支持外部托管建议使用YouTube

部署选项对比#

平台免费额度构建速度自定义域名CDN价格推荐度
Vercel100GB/月⭐⭐⭐⭐$20/月起⭐⭐⭐⭐
Netlify100GB/月⭐⭐⭐$19/月起⭐⭐⭐
GitHub Pages无限⭐⭐免费⭐⭐⭐
Cloudflare Pages无限⭐⭐⭐⭐免费⭐⭐⭐⭐

快捷键参考表#

操作Windows/LinuxmacOS功能描述使用频率
新建文章Ctrl+NCmd+N创建新文章⭐⭐⭐⭐
保存文件Ctrl+SCmd+S保存当前文件⭐⭐⭐⭐⭐
搜索内容Ctrl+FCmd+F在当前页面搜索⭐⭐⭐⭐
全局搜索Ctrl+Shift+FCmd+Shift+F全局文件搜索⭐⭐⭐
格式化代码Shift+Alt+FShift+Option+F代码格式化⭐⭐⭐

表情符号在表格中的使用#

表情含义使用场景示例
完成/成功任务状态、功能实现功能开发 ✅
🔄进行中当前正在进行的任务代码重构 🔄
待开始计划中的任务新功能 ⏳
⚠️警告/注意需要注意的事项兼容性 ⚠️
错误/不支持不支持的功能旧浏览器 ❌
评级/重要优先级、评分重要功能 ⭐⭐⭐⭐

表格最佳实践#

  1. 保持简洁:每行不超过7列,避免过于宽泛
  2. 使用标题:为表格添加清晰的标题和描述
  3. 对齐一致:数字右对齐,文本左对齐
  4. 适当空白:使用空行分隔不同的表格
  5. 移动端友好:考虑在小屏幕上的显示效果
  6. 语义化:使用有意义的列名和内容

这些高级表格示例展示了Markdown表格在各种实际场景中的应用,从项目管理到技术对比,帮助您更好地组织和展示信息。

Simple Guides for Mizuki
https://qintianhao.com/posts/simple-guides-for-mizuki/
Author
Qin Tianhao
Published at
2025-09-10
License
CC BY-NC-SA 4.0

Some information may be outdated

封面
示例歌曲
示例艺术家
封面
示例歌曲
示例艺术家
0:00 / 0:00