fix: Fixed a bug with template selection.

This commit is contained in:
Spencer Brower
2026-07-17 17:16:21 -04:00
parent a41a7803a4
commit 6e66709f05
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -91,6 +91,9 @@ infer_layout :: proc(section: string, is_index: bool) -> string {
return fmt.tprintf("%s_index", section)
}
if section != "" {
if len(section) > 1 && section[len(section) - 1] == 's' {
return section[:len(section) - 1]
}
return section
}
return "page"