diff --git a/layouts/index.html b/layouts/index.html
index aa4d823..81c02a9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -2,40 +2,43 @@
{{ partial "profile.html" . }}
- {{ $pages := where .Site.RegularPages "Params.hidden" "ne" "true" }}
+ {{ $pages := .Site.RegularPages }}
{{ $paginator := .Paginate ($pages) }}
{{ range $paginator.Pages }}
{{ $title := .Title }}
{{ $summary := .Summary }}
+ {{ $date := dateFormat "Jan 2, 2006" .Date }}
-
{{ .Date.Format "Jan 2" }}
+
{{ $date }}
{{ $summary | plainify | htmlUnescape }}
+
+ {{ end }}
-
- {{ with .Resources.ByType "image" }}
- {{ $image := index . 1 }}
- {{ range . }}
- {{ if eq .Name "images/cover.png" }}
- {{ $image = . }}
- {{ else if eq .Name "images/cover.jpg" }}
- {{ $image = . }}
- {{ else if eq .Name "images/cover.jpeg" }}
- {{ $image = . }}
- {{ end }}
- {{ end }}
-
-
-
-
+ {{ if or ($paginator.HasPrev) ($paginator.HasNext) }}
+
{{ end }}
+
{{ end }}
diff --git a/static/css/style.css b/static/css/style.css
index 475d53f..e02cf6a 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -252,7 +252,7 @@ nav.navigation a.button {
}
#list-page .summary {
- color: #6a737d;
+ color: #8c8c8c;
margin-top: 12px;
}
@@ -265,4 +265,18 @@ nav.navigation a.button {
#list-page .cover img {
width: 100%;
text-align: center;
+}
+
+#list-page .pagination {
+ margin: 48px 0;
+ width: 100%;
+ height: 32px;
+ margin-top: 48px;
+}
+
+#list-page .pagination .pre {
+ float: left;
+}
+#list-page .pagination .next {
+ float: right;
}
\ No newline at end of file