1export default function (title: string) { 2 const slug = title.replace(/[^\w\s\'\-\_]/g, "").replace(/\s+/g, "-") 3 .toLowerCase(); 4 5 return { 6 path: `/blog/${slug}.md`, 7 content: { 8 title: title, 9 summary: "", 10 draft: true, 11 published: new Date(Date.now()).toISOString().split("T")[0], 12 templateEngine: ["vto", "md"], 13 }, 14 }; 15}