-
Blog
+ {{ range where .Data.Pages "Title" "Home"}}
+
+ {{ .Content }}
+
+ {{ end }}
+
- {{ range .Data.Pages.ByPublishDate }}
- {{ if eq .Section "blog" }}
+ {{ range first 5 (.Data.Pages.GroupByDate "Jan, 2006" "desc")}}
+ {{ $nbPages := len (where .Pages "Section" "blog")}}
+ {{ if ne $nbPages 0}}{{ .Key }}{{ end }}
+ {{ range where .Pages.ByPublishDate "Section" "blog"}}
{{ partial "li.html" . }}
{{ end }}
{{ end }}
diff --git a/layouts/section/blog.html b/layouts/section/blog.html
new file mode 100644
index 0000000..ff6baa4
--- /dev/null
+++ b/layouts/section/blog.html
@@ -0,0 +1,17 @@
+{{ partial "header.html" . }}
+
+
+
+
Blog
+
+ {{ range .Data.Pages.GroupByDate "Jan, 2006" "desc"}}
+ {{ .Key }}
+ {{ range .Pages.ByPublishDate }}
+ {{ partial "li.html" . }}
+ {{ end }}
+ {{ end }}
+
+
+
+
+{{ partial "footer.html" . }}