diff --git a/layouts/quotes/list.html b/layouts/quotes/list.html new file mode 100644 index 0000000..497ce42 --- /dev/null +++ b/layouts/quotes/list.html @@ -0,0 +1,41 @@ +{{ partial "header.html" . }} + + + + {{ .Title }} + {{.Content}} + + {{ $paginator := .Paginate (where .Data.Pages "Type" "quotes") }} + {{ range $paginator.Pages }} + + {{ .Title }} {{ if .Draft }}:: DRAFT{{end}} + + {{ .Date.Format "Jan 2, 2006" }} + {{ range .Params.categories }} + #{{ . }} + {{ end }} + {{ range .Params.tags }} + #{{ . }} + {{ end }}: {{ .Description }} + + + {{ end }} + + + + + {{ $paginator := .Paginate (where .Data.Pages "Type" "quotes") }} + {{ if .Paginator.HasPrev }} + Prev + {{ end }} + Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }} + {{ if .Paginator.HasNext }} + Next + {{ end }} + + +{{ partial "footer.html" . }} + +