fix: new posts were not rendering css properly

This commit is contained in:
venus
2026-09-14 23:25:16 -05:00
parent 6f3bf4bf89
commit 31f93f559d
4 changed files with 28 additions and 0 deletions
+1
View File
@@ -165,6 +165,7 @@ Here is an image: ![[camera-board.png]]
assert.ok(fs.existsSync(writtenPath), "Post markdown file must be written to disk");
const writtenContent = fs.readFileSync(writtenPath, "utf-8");
assert.match(writtenContent, /^layout:\s*layouts\/post\.njk$/m, "Layout must be injected into frontmatter when missing");
assert.match(writtenContent, /\[Other Post\]\(\/posts\/other-post\/\)/, "Wikilink with alias must be translated");
assert.match(writtenContent, /\[simple-link\]\(\/posts\/simple-link\/\)/, "Simple wikilink must be translated");
assert.match(writtenContent, /!\[camera-board\.png\]\(\/assets\/images\/posts\/camera-board\.png\)/, "Attachment wikilink must be translated");