Browse Source

need the .yaml suffix for linking

main
zen 1 year ago
parent
commit
a6f798fe58
  1. 2
      routes/listPosts

2
routes/listPosts

@ -7,4 +7,4 @@ limit=$3
offset=$(( (page - 1) * limit )) offset=$(( (page - 1) * limit ))
ls -1 "$dir"/*.yaml | awk -F/ '{print $NF}' | sed 's/\.yaml$//' | tail -n "+$((offset+1))" | head -n "$limit" ls -1 "$dir"/*.yaml | awk -F/ '{print $NF}' | tail -n "+$((offset+1))" | head -n "$limit"

Loading…
Cancel
Save