$pagetitle

by $pageauthor, on $pagedate
"; echo (new Parsedown())->text($pagecontent); echo "
"; } else if ($type === "page") { echo "
" . (new Parsedown())->text($pagecontent) . "
"; } if ($requestedpage === $blogpagename) { $pages = array_slice(array_reverse(glob("./article/*.{txt,md}", GLOB_BRACE)), $_GET['start'], 10); foreach($pages as $page) { list($pagecontent, $pagetitle, $pageauthor, $pagedate, $pagenomenu, $pageurl) = getpage($page); if (!$pageurl) { $pageurl = pathinfo($page)['filename']; } echo "

$pagetitle

by $pageauthor, on $pagedate
"; echo (new Parsedown())->text($pagecontent); echo "
"; } if ($_GET['start'] > 0) { echo " 10) ? "?start=" . ($_GET['start'] - 10) : "") . "\">Newer articles  "; } if (count(array_slice(array_reverse(glob("./article/*.{txt,md}", GLOB_BRACE)), $_GET['start'], 11)) > 10) { echo "Older articles"; } } ?>