diff --git a/content/en/blog/2025/_index.md b/content/en/blog/2025/_index.md index 6a48570332c3..a426ecf8bf8e 100644 --- a/content/en/blog/2025/_index.md +++ b/content/en/blog/2025/_index.md @@ -3,3 +3,7 @@ title: 2025 weight: -2025 outputs: [HTML, RSS] --- + +## Happy New Year! + +Amazing posts are on their way for 2025 — check back soon. diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 000000000000..f177dff06ce0 --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,43 @@ +{{ define "main" }} +{{ if (and .Parent .Parent.IsHome) -}} + {{ $.Scratch.Set "blog-pages" (where .Site.RegularPages "Section" .Section) -}} +{{ else -}} + {{$.Scratch.Set "blog-pages" .Pages -}} +{{ end -}} + +{{/* Docsy override - temporary */ -}} +{{ .Content -}} + +
+ {{ if .Pages -}} + {{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006" ) -}} + {{ range $pag.PageGroups -}} +
{{ T "post_posts_in" }} {{ .Key }}
+ + {{ end -}} + {{ end }} +
+
+ {{ if .Pages -}} + {{ template "_internal/pagination.html" . -}} + {{ end -}} +
+{{ end -}}