fix sprintf args
This commit is contained in:
parent
ebc72472c0
commit
7d8a3bc683
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue