fix: chatgpt prompts

This commit is contained in:
2024-06-21 11:36:23 +02:00
parent 0adce93c81
commit 9fc57d45b5
10 changed files with 27 additions and 32 deletions

View File

@ -1,7 +1,6 @@
import { parseDocument } from "@lib/documents.ts";
import { parse } from "yaml";
import { parse, stringify } from "@std/yaml";
import { createCrud } from "@lib/crud.ts";
import { stringify } from "$std/yaml/stringify.ts";
import { extractHashTags, formatDate } from "@lib/string.ts";
import { fixRenderedMarkdown } from "@lib/helpers.ts";
@ -29,14 +28,13 @@ function renderArticle(article: Article) {
meta.date = formatDate(meta.date);
}
return fixRenderedMarkdown(`${
meta
return fixRenderedMarkdown(`${meta
? `---
${stringify(meta)}
---`
: `---
---`
}
}
# ${article.name}
${article.tags.map((t) => `#${t}`).join(" ")}
${article.content}