mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-07-06 11:22:50 +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
|
// Strip hypha name from all ancestor names, replace _ with spaces, title case
|
||||||
func BeautifulName(uglyName string) string {
|
func BeautifulName(uglyName string) string {
|
||||||
|
if uglyName == "" {
|
||||||
|
return uglyName
|
||||||
|
}
|
||||||
return strings.Title(strings.ReplaceAll(path.Base(uglyName), "_", " "))
|
return strings.Title(strings.ReplaceAll(path.Base(uglyName), "_", " "))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user