| @@ -308,7 +308,7 @@ func NewFuncMap() []template.FuncMap { | |||||
| "categories": categories, | "categories": categories, | ||||
| "licenses": licenses, | "licenses": licenses, | ||||
| "DatasetPathJoin": func(arr []string, index int, seq string) string { | "DatasetPathJoin": func(arr []string, index int, seq string) string { | ||||
| return strings.Join(arr[0:index+1], seq) | |||||
| return strings.Join(arr[1:index+1], seq) | |||||
| }, | }, | ||||
| }} | }} | ||||
| } | } | ||||
| @@ -7,7 +7,7 @@ | |||||
| <div class="column sixteen wide"> | <div class="column sixteen wide"> | ||||
| <p> | <p> | ||||
| {{ range $index, $item := .Path }} | {{ range $index, $item := .Path }} | ||||
| <a href='{{$.Link}}/?parentDir={{if gt $index 0}}{{DatasetPathJoin $.Path $index "/"}}{{else}}{{end}}'>{{ $item }}</a>/ | |||||
| <a href='{{$.Link}}/?parentDir={{if gt $index 0}}{{DatasetPathJoin $.Path $index "/"}}{{else}}{{end}}'>{{ $item }}</a><span class="directory-seperator">/</span> | |||||
| {{ end }} | {{ end }} | ||||
| </p> | </p> | ||||
| </div> | </div> | ||||
| @@ -155,6 +155,9 @@ | |||||
| font-weight: bold; | font-weight: bold; | ||||
| margin: 0 6px; | margin: 0 6px; | ||||
| } | } | ||||
| .directory-seperator { | |||||
| padding: 0 4px; | |||||
| } | |||||
| } | } | ||||
| .dataset-list { | .dataset-list { | ||||
| .octicon-check { | .octicon-check { | ||||