From a6f798fe5890e651192883248fc78f542d2ea039 Mon Sep 17 00:00:00 2001 From: zen Date: Fri, 25 Aug 2023 10:31:40 -0400 Subject: [PATCH] need the .yaml suffix for linking --- routes/listPosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/listPosts b/routes/listPosts index 8bf95bf..a17acc2 100755 --- a/routes/listPosts +++ b/routes/listPosts @@ -7,4 +7,4 @@ limit=$3 offset=$(( (page - 1) * limit )) -ls -1 "$dir"/*.yaml | awk -F/ '{print $NF}' | sed 's/\.yaml$//' | tail -n "+$((offset+1))" | head -n "$limit" \ No newline at end of file +ls -1 "$dir"/*.yaml | awk -F/ '{print $NF}' | tail -n "+$((offset+1))" | head -n "$limit"