This commit is contained in:
2025-06-13 19:28:25 -04:00
parent 280122c27d
commit 9f101abc10
6 changed files with 68 additions and 15 deletions

View File

@ -1,5 +1,5 @@
<?php
function entries($path = "blog", $limit = false) {
function blog_entries($path = "blog", $limit = false) {
$files = scandir($path."/");
$entries = [];
$i = 0;
@ -7,9 +7,9 @@
foreach ($files as $file) {
if (is_dir($path.'/'.$file) && $file[0] != ".") {
$tags = get_meta_tags($path.'/'.$file.'/index.html');
$entries[$i][0] = preg_replace("/\//", "", $tags["date"]);
$entries[$i][0] = preg_replace("/\//", "", $tags["date"]);
$entries[$i][1] = $file;
$entries[$i][2] = $tags["date"];
$entries[$i][2] = $tags["date"];
$i++;
}
}