diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 41d9d89..2fd3aa2 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -7,12 +7,14 @@
{{ .Content }}
- {{ range (where .Data.Pages "Section" "!=" "") }}
+ {{ $paginator := .Paginate (where .Data.Pages "Section" "!=" "") }}
+ {{ range $paginator.Pages }}
-
{{ .Date.Format "2006/01/02" }}
{{ .Title }}
{{ end }}
+{{ template "_internal/pagination.html" . }}
{{ partial "footer.html" . }}
diff --git a/static/css/style.css b/static/css/style.css
index 0edd168..5cf93fd 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -22,6 +22,11 @@ hr {
color: #ddd;
}
+/* pagination */
+.pagination { text-align: center; }
+.pagination li { display: inline; }
+.pagination a { padding: 0 .2em; }
+
/* code */
pre {
border: 1px solid #ddd;