Momo 配置指南

2025年9月28日

文章的配置文件主要为astro.config.mjssrc/config.ts

astro.config.mjs

  • site: 网站的URL
  • markdown
    • shikiConfig: 代码块的样式,可以参考Astro的文档Shiki

src/config.ts

siteConfig

  • title: 网站的标题
  • subTitle: 网站的副标题
  • cover
    • enable: 是否启用
    • title: 封面的标题
    • subTitle: 封面的副标题
  • favicon: 网站的图标
  • pageSize: 每页显示的文章数量
  • toc
    • enable: 是否启用目录
    • depth: 目录的深度

profileConfig

  • avatar: 头像
  • name: 名字
  • description: 描述
  • indexpage: 个人页面首页

licenseConfig

  • enable: 是否启用License,展示在文章的最后
  • name: License名称
  • url: License的URL

friendLinkConfig

  • name: 友链名称
  • avatar: 友链图标
  • url: 友链URL
  • description: 友链描述

本文作者:Momo

本文链接:https://momo.motues.top/blog/intro/config/

文章默认使用 CC BY-NC-SA 4.0 协议进行许可,使用时请注意遵守协议。

输入关键词开始搜索