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:
parent
cec494da30
commit
fe43c1e8f8
@ -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), "_", " "))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user