From c5d71803a5038ed02a6894f48b8cf6b2472cdb0c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 10 Sep 2025 20:58:17 +0100 Subject: [PATCH] Show blog post count locally Signed-off-by: Oliver Davies --- app/config/sculpin_site.yml | 1 + source/_pages/blog.html.twig | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index a10f3ccab..446070927 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -36,6 +36,7 @@ drupalorg: features: new_css: false + show_blog_post_count: true github: url: https://github.com/%github.username% diff --git a/source/_pages/blog.html.twig b/source/_pages/blog.html.twig index 7fc8af02b..bcb51dc59 100644 --- a/source/_pages/blog.html.twig +++ b/source/_pages/blog.html.twig @@ -7,6 +7,10 @@ pagination: use: [posts] --- +{% if site.features.show_blog_post_count %} + {{ data.posts|length|number_format }} +{% endif %} +