fix sprintf args

This commit is contained in:
Finn 2021-03-24 19:31:05 -07:00
parent ebc72472c0
commit 7d8a3bc683

View file

@ -64,8 +64,7 @@ title: "%s"
func filePrepender(filename string) string {
name := filepath.Base(filename)
base := strings.TrimSuffix(name, path.Ext(name))
url := strings.ToLower(base)
return fmt.Sprintf(fmTemplate, strings.Replace(base, "_", " ", -1), base, url)
return fmt.Sprintf(fmTemplate, strings.Replace(base, "_", " ", -1))
}
func linkHandler(name string) string {