1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-11 21:10:26 +00:00

Fix extra navigation links appearing

This commit is contained in:
bouncepaw 2021-01-11 21:13:41 +05:00
parent cec494da30
commit fe43c1e8f8

View File

@ -59,5 +59,8 @@ func RandomString(n int) (string, error) {
// Strip hypha name from all ancestor names, replace _ with spaces, title case
func BeautifulName(uglyName string) string {
if uglyName == "" {
return uglyName
}
return strings.Title(strings.ReplaceAll(path.Base(uglyName), "_", " "))
}