From 4263d6e2797044afae0b1d5489e3410928d84036 Mon Sep 17 00:00:00 2001 From: Thomas T Date: Fri, 29 Dec 2023 02:26:32 -0500 Subject: [PATCH] add support for `custom_main` --- layouts/partials/custom_main.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 layouts/partials/custom_main.html diff --git a/layouts/partials/custom_main.html b/layouts/partials/custom_main.html new file mode 100644 index 0000000..fd7a145 --- /dev/null +++ b/layouts/partials/custom_main.html @@ -0,0 +1,25 @@ +{{ if .IsHome }} + {{ $pages := first .Site.Params.latestPostsCount (where .Site.RegularPages "Section" "blog") }} + +{{ end }}