feat(template): added {{file}} override to render template

This commit is contained in:
Kristian Borgwarth 2026-04-03 20:35:58 +02:00
parent b4c114f713
commit ce38f24c86

View file

@ -16,6 +16,7 @@ func RenderTemplate(templatePath string, title string, slug string) ([]byte, err
"{{title}}", title,
"{{date}}", time.Now().Format("2006-01-02"),
"{{slug}}", slug,
"{{file}}", slug+".md",
)
return []byte(r.Replace(string(template))), nil