port gemlog to blog

This commit is contained in:
2026-03-24 22:06:32 +00:00
parent 46bc365021
commit 4b720b8dd7
3 changed files with 37 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ const GemtextHTMLRenderer: Gemtext.Renderer<string> = {
const post = Astro.props;
const Content = post.filePath?.endsWith('.gmi')
? Gemtext.parse(post.body ?? '').generate(GemtextHTMLRenderer)
? Gemtext.parse((post.body ?? '').replace(`# ${post.data.title}`, '')).generate(GemtextHTMLRenderer)
: (await render(post)).Content;
---