diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1c6bd426..f3f7d615 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,6 +2,8 @@ {{ $paginator := .Paginate .Data.Pages }}
+ {{ partial "generic-list-header.html" . }} +

{{ title (replace .Title "-" " ") }}

{{ if .Content }} diff --git a/layouts/partials/generic-list-header.html b/layouts/partials/generic-list-header.html new file mode 100644 index 00000000..86d3552a --- /dev/null +++ b/layouts/partials/generic-list-header.html @@ -0,0 +1,25 @@ +
+

+ + + + + + + Last updated + {{ partial "year-relative-date.html" .Lastmod }} +

+

+ + + + + + + {{ len .Data.Pages }} posts +

+ +
\ No newline at end of file diff --git a/layouts/partials/memex-header.html b/layouts/partials/memex-header.html index d40402e2..a1e02a17 100644 --- a/layouts/partials/memex-header.html +++ b/layouts/partials/memex-header.html @@ -1,14 +1,4 @@
-

@@ -19,13 +9,28 @@ Last updated {{ partial "year-relative-date.html" .Lastmod }}

-

- +

+ {{ if gt (len .Data.Pages) 0 }} +

+ + + + + + + {{ len .Data.Pages }} posts +

+ {{ end }}
+ {{ partial "generic-list-header.html" . }} +

{{ title (replace .Title "-" " ") }}

{{ if .Content }}