Allow going back in the directory structure
This commit is contained in:
parent
d5a64c55fa
commit
b507d458b0
|
@ -10,10 +10,17 @@ config change. -->
|
|||
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
{{ if eq $navbar_style "classy" }}</span>{{ end }}
|
||||
{{- end }}
|
||||
|
||||
</nav>
|
||||
<h1>{{ $.Site.Title }}</h1>
|
||||
{{ else }}
|
||||
<a href="/">Go Home</a>
|
||||
{{ $path := .Path }}
|
||||
{{ $bpath := path.Dir $path }}
|
||||
{{ if eq $bpath "/" }}
|
||||
{{ else }}
|
||||
<a href="{{ $bpath }}">Back to {{ $bpath }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
<p>{{ $.Site.Params.subtitle }}</p>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue