diff --git a/themes/my-theme/layouts/index.html b/themes/my-theme/layouts/index.html
index 513b9b7..b139400 100644
--- a/themes/my-theme/layouts/index.html
+++ b/themes/my-theme/layouts/index.html
@@ -3,11 +3,14 @@
{{ .Content }}
{{ range .Site.RegularPages.GroupByDate "2006" }}
-
{{ .Key }}
-
- {{ range where .Pages "Type" "posts" }}
- {{ partial "li.html" . }}
+ {{ $posts := where .Pages "Type" "posts" }}
+ {{ if ge (len $posts) 1 }}
+ {{ .Key }}
+
+ {{ range where .Pages "Type" "posts" }}
+ {{ partial "li.html" . }}
+ {{ end }}
+
{{ end }}
-
{{ end }}
{{ end }}