From 6c14c1355f83f09fa097575419cca2eb8230b4a2 Mon Sep 17 00:00:00 2001 From: FarseaSH Date: Sun, 23 Jun 2024 21:30:21 +0800 Subject: [PATCH] NEW: add json api style return to show number of moments in a certain section. --- layouts/_default/list.json.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 layouts/_default/list.json.json diff --git a/layouts/_default/list.json.json b/layouts/_default/list.json.json new file mode 100644 index 0000000..a0a2820 --- /dev/null +++ b/layouts/_default/list.json.json @@ -0,0 +1,4 @@ +{ + "sectionName": "{{ default "index" .Section }}", + "momentCount": {{ len .Site.RegularPages }} +} \ No newline at end of file