diff options
Diffstat (limited to 'template.go')
| -rw-r--r-- | template.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/template.go b/template.go index f58349e..7aee61a 100644 --- a/template.go +++ b/template.go | |||
| @@ -43,6 +43,11 @@ var tpltext = `<!doctype html> | |||
| 43 | <a href="{{ $href }}" class="location__uripart">{{ . }}</a> | 43 | <a href="{{ $href }}" class="location__uripart">{{ . }}</a> |
| 44 | {{- else -}} | 44 | {{- else -}} |
| 45 | {{- $href = printf "%s/1" $href -}} | 45 | {{- $href = printf "%s/1" $href -}} |
| 46 | {{- $part = $part | trimLeftChar -}} | ||
| 47 | {{- if not (eq $part "") -}} | ||
| 48 | {{- $href = printf "%s/%s" $href $part -}} | ||
| 49 | <span class="location__slash">/</span><a href="{{ $href }}" class="location__uripart">{{ $part }}</a> | ||
| 50 | {{- end -}} | ||
| 46 | {{- end -}} | 51 | {{- end -}} |
| 47 | {{- end -}} | 52 | {{- end -}} |
| 48 | {{- if ne (len $uriParts) 0 -}} | 53 | {{- if ne (len $uriParts) 0 -}} |
