diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 20ca950..2e128cf 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,9 +1,7 @@ {{ partial "site_header.html" . }} {{ partial "page_header.html" . }} -
- {{ partial "preview_list.html" . }} -
+{{ partial "default_list.html" . }} {{ partial "page_footer.html" . }} {{ partial "site_footer.html" . }} diff --git a/layouts/partials/default_list.html b/layouts/partials/default_list.html new file mode 100644 index 0000000..142274c --- /dev/null +++ b/layouts/partials/default_list.html @@ -0,0 +1,3 @@ +
+ {{ partial "preview_list.html" . }} +
diff --git a/layouts/partials/yearly_grouping.html b/layouts/partials/yearly_grouping.html new file mode 100644 index 0000000..0cccf9e --- /dev/null +++ b/layouts/partials/yearly_grouping.html @@ -0,0 +1,25 @@ +
+
+
+ {{ range .Data.Pages.GroupByDate "2006" }} +
+

{{ .Key }}

+ +
+ {{ end }} +
+
+
diff --git a/layouts/section/microposts.html b/layouts/section/microposts.html new file mode 100644 index 0000000..c825505 --- /dev/null +++ b/layouts/section/microposts.html @@ -0,0 +1,15 @@ +{{ partial "site_header.html" . }} +{{ partial "page_header.html" . }} + +{{ if isset .Site.Params "yearlymicroposts" | and ( .Site.Params.yearlymicroposts ) }} + +{{ partial "yearly_grouping.html" . }} + +{{ else }} + +{{ partial "default_list.html" . }} + +{{ end }} + +{{ partial "page_footer.html" . }} +{{ partial "site_footer.html" . }} \ No newline at end of file diff --git a/layouts/section/posts.html b/layouts/section/posts.html index aca6cfa..24510ab 100644 --- a/layouts/section/posts.html +++ b/layouts/section/posts.html @@ -1,31 +1,7 @@ {{ partial "site_header.html" . }} {{ partial "page_header.html" . }} -
-
-
- {{ range .Data.Pages.GroupByDate "2006" }} -
-

{{ .Key }}

- -
- {{ end }} -
-
-
+{{ partial "yearly_grouping.html" . }} {{ partial "page_footer.html" . }} {{ partial "site_footer.html" . }}