Skip to content

(示例)来自 Draftly 的同步稿 ​

将本文件复制为 website/sync/<section>/<slug>.md(去掉文件名 _ 前缀,并将 draft 设为 false)即可被 npm run ingest 校验并进入站点。

正文请使用 Markdown。图片放到 website/public/sync/<sourceId>/ 后用不含站点 base 的根路径引用(VitePress 构建时会按 base 改写;勿写成 /penn-notes/sync/...,否则 Rollup 会当成模块解析失败):

md
<img class="article-cover" src="https://img.penn-notes.draftly.cn/sync/<sourceId>/cover.jpg" alt="封面" />

![配图](https://img.penn-notes.draftly.cn/sync/<sourceId>/img-1.jpg)

<figure class="inline-figure">
  <img src="https://img.penn-notes.draftly.cn/sync/<sourceId>/img-1.jpg" alt="配图" />
  <figcaption>第一章 配图</figcaption>
</figure>