diff options
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..5ecbbe0 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,13 @@ +{{ define "main" }} + <div id="{{.Section}}-list"> + <h1>{{ if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }}{{ end }}</h1> + + {{ .Content }} + + {{ range (union .Sections .Pages).ByDate.Reverse }} + <p> + <a href="{{ .RelPermalink }}">{{ .Title }}</a> + </p> + {{ end }} + </div> +{{ end }} |