We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c296370 commit 5291642Copy full SHA for 5291642
posts.php
@@ -17,9 +17,9 @@
17
exit(1);
18
}
19
20
-// Limit to the latest 5 posts (adjust if needed)
+// Generate the list of all blog posts
21
$posts = '';
22
-foreach (array_slice($feed['entry'], 0, 5) as $post) {
+foreach ($feed['entry'] as $post) {
23
$date = date('d/m/Y', strtotime($post['updated'] ?? ''));
24
$posts .= sprintf(
25
"\n* **[%s]** [%s](%s \"%s\")",
@@ -50,4 +50,4 @@
50
// Write the updated content to README.md
51
file_put_contents($readmePath, $newContent);
52
53
-echo "README.md updated successfully with the latest blog posts.\n";
+echo "README.md updated successfully with all blog posts.\n";
0 commit comments