depp

No frills static page generator for Git repositories

git clone https://git.8pit.net/depp.git

 1<nav>
 2	<h2>
 3		{{- if (eq .Path "") -}}
 4			tree
 5		{{- else -}}
 6			<ul>
 7				{{- $elems := .PathElements -}}
 8				{{- $amount := (len .PathElements) -}}
 9
10				<li><a class="head" href="{{ (getRelPath (decrement $amount)) }}index.html">HEAD</a></li>
11				{{- range $i, $e := .PathElements -}}
12					{{- $amount = (decrement $amount) -}}
13					<li><a href="{{ (getRelPath $amount) }}{{ $e }}.html">{{ $e }}</a></li>
14				{{- end -}}
15			</ul>
16		{{- end -}}
17	</h2>
18</nav>