lowercase blog ids

This commit is contained in:
Caleb Gardner
2025-02-05 05:40:10 -06:00
parent 11a39a53cb
commit 24b99d7d1e
+1 -1
View File
@@ -63,7 +63,7 @@ func (b *Blog) HTMX(blogApp *BlogApp, ctx context.Context) string {
func (b Blog) IDFromTitle() string {
id := strings.Join(regexp.MustCompile("([A-z]| |[0-9])*").FindAllString(b.Title, -1), "")
return strings.ReplaceAll(id, " ", "-")
return strings.ToLower(strings.ReplaceAll(id, " ", "-"))
}
func (b *BlogApp) ConvertBlog(blog *Blog) {