通知公告使用指南

通知公告页面书写规范

  • 文档放在 docs/notices/posts 中
  • 开头写元数据
    YAML
    ---
    title: 通知名称
    date: 2025-07-08T14:05:00 (时间戳以此为准)
    hide_reading_time: true   # 用于不显示阅读时间,因为插件已经支持了
    authors:
      - Noflower
    categories:
      - 条目1
      - 条目2
      - ...
    links:
      - 自学记录/CSS/css_learning.md  # 本站链接
      - Nested section:
        - External link: https://example.com # 二级链接、外部链接
    pin: true # 置顶
    ---
    
  • 通知中心会自动截取文章的前一部分加载在通知页面中,可以使用 <!-- more --> 来在主界面中隐藏后续内容,此时,在主界面会显示 "继续阅读" 字样,点击后跳转至原文。
  • 如果要写 authors 条目,请在 docs/notices/.authors.yml 中写入,name, discription, avatar 三个字段为必须,其中 avatar 字段必须写url。