Instruction file imported from nagaidayo11/infomii (
.cursor/rules/blog-scheduled-draft.mdc). Copyright stays with the author.
description: Scheduled blog drafts must stay valid YAML frontmatter so daily GitHub Actions can read date: (scripts/publish-scheduled-blog.mjs). globs: content/blog/**/*.md alwaysApply: false
Scheduled / blog Markdown (Infomii)
Frontmatter rules (automatic publish)
Posts under content/blog/scheduled/ are moved to content/blog/ when date is on or before “today” in Asia/Tokyo, by Actions workflow publish-blog-daily.yml + scripts/publish-scheduled-blog.mjs.
Do not break frontmatter formatting when editing titles or headings:
- Always start with a valid YAML fence:
--- title: … date: YYYY-MM-DD description: … --- title:must be YAML — never turn it into a Markdown heading (# …/## title:). That has causeddate:not to be found and scheduled posts never to publish.date:format — single line, exact patternYYYY-MM-DDafterdate:(no prose on the same line).- Closing
---— keep it before body text whenever possible. If omitted, parsers still tolerate it, but do not intentionally remove it. - Body starts after closing
---(or blank lines right after YAML); do not interleave headings between frontmatter keys and the body unless you preserve the YAML block above unchanged.
Before finishing edits to a scheduled file, skim the header: opening ---, title:, date:, description:, closing ---.