feat: automatically generate Open Graph cards

This commit is contained in:
radishzzz 2025-03-13 05:00:18 +00:00
parent 9b9bdb2811
commit a556a622ab
14 changed files with 59 additions and 30 deletions

View file

@ -5,7 +5,7 @@ import sanitizeHtml from 'sanitize-html'
const parser = new MarkdownIt()
// Generate an excerpt from Markdown content
export function generateExcerpt(content: string, length: number = 100): string {
export function generateExcerpt(content: string, length: number = 98): string {
if (!content)
return ''