initial list.html template

This commit is contained in:
Marcell Mars 2020-12-12 05:23:04 +01:00
parent de9e594785
commit c543664ef5

View file

@ -1,3 +1,11 @@
<ul>
<li>{{ .Title }}</li>
</ul>
{{ define "singlebody" }}
{{ $s := partialCached "scratch.html" . }}
{{ range $p := .Site.Pages }}
{{ $scratch := $s.Get (printf "/%s" .File) }}
<div>{{ . }}: {{ .Title }}</div>
{{ with ($scratch.depth) }}
<div>Depth: {{ . }}
{{ end }}
<hr />
{{ end }}
{{ end }}