{{ define "layout" }} {{ $root := . }} {{ template "navigation" . }}
{{ if .Content.File }} {{ end }}

{{ template "root_link" . }} {{ range $index, $path := .Content.Paths }} {{ if or (not $root.Request.Share.ID) (ne $index 0) }} {{ $fullPath := rebuildPaths $root.Content.Paths $index }}  /  {{ $path }} {{ end }} {{ end }}

{{ if .Content.File }}

↳  {{ .Content.File.Name }}

{{ if or .Content.Previous .Content.Next }} {{ end }} {{ end }}
{{ template "message" .Message }} {{ end }}