updates on #18

This commit is contained in:
Henrique Dias
2016-08-26 21:59:06 +01:00
parent c29d066842
commit aa7d4f69ef
3 changed files with 68 additions and 11 deletions

View File

@@ -46,6 +46,10 @@ func (i Info) BreadcrumbMap() map[string]string {
parts := strings.Split(lpath, "/")
for i, part := range parts {
if i == len(parts)-1 {
continue
}
if i == 0 && part == "" {
// Leading slash (root)
result["/"] = "/"