Skip to content

Commit 5291642

Browse files
authored
Update posts.php
1 parent c296370 commit 5291642

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

posts.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
exit(1);
1818
}
1919

20-
// Limit to the latest 5 posts (adjust if needed)
20+
// Generate the list of all blog posts
2121
$posts = '';
22-
foreach (array_slice($feed['entry'], 0, 5) as $post) {
22+
foreach ($feed['entry'] as $post) {
2323
$date = date('d/m/Y', strtotime($post['updated'] ?? ''));
2424
$posts .= sprintf(
2525
"\n* **[%s]** [%s](%s \"%s\")",
@@ -50,4 +50,4 @@
5050
// Write the updated content to README.md
5151
file_put_contents($readmePath, $newContent);
5252

53-
echo "README.md updated successfully with the latest blog posts.\n";
53+
echo "README.md updated successfully with all blog posts.\n";

0 commit comments

Comments
 (0)