feat: dynamic ish terminal preview
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
const postLayout = fs.readFileSync(path.resolve("src/_includes/layouts/post.njk"), "utf-8");
|
||||
|
||||
test("Post layout: omits the leading terminal preview from the public article body", () => {
|
||||
assert.match(postLayout, /content\s*\|\s*removeTerminalPreview\s*\|\s*safe/);
|
||||
});
|
||||
Reference in New Issue
Block a user