From c543664ef5668dd2587a2706fb819c705c9581c0 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Sat, 12 Dec 2020 05:23:04 +0100 Subject: [PATCH] initial list.html template --- layouts/_default/list.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index aa222a0..447b3d9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,3 +1,11 @@ - +{{ define "singlebody" }} + {{ $s := partialCached "scratch.html" . }} + {{ range $p := .Site.Pages }} + {{ $scratch := $s.Get (printf "/%s" .File) }} +
{{ . }}: {{ .Title }}
+ {{ with ($scratch.depth) }} +
Depth: {{ . }} + {{ end }} +
+ {{ end }} +{{ end }}