Skip to content

Commit 1932709

Browse files
committed
hugo: fix apparently breaking change in Hugo
I have no idea why the previous incantation worked for years and now all of a sudden stopped working. I "fixed" it by googling and trying various weird incantations until I found one that worked. Really annoying.
1 parent 7d22c52 commit 1932709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<!-- {{ template "_internal/pagination.html" . }} -->
1818
</div>
1919
{{ else }}
20-
{{ range first 10 .Data.Pages.ByDate.Reverse }}
20+
{{ range (where .Site.RegularPages.ByDate.Reverse "Section" "post") }}
2121
{{ if eq .Type "post" }}
2222
{{ .Render "summary"}}
2323
{{ end }}

0 commit comments

Comments
 (0)