3 ms·
I haven't open-sourced it, mostly because it's not even really worth it. Basically, it's: foreach($entries as $entry => $data) { if( file_exists( "en
by CaptSpify 10y ago
I haven't open-sourced it, mostly because it's not even really worth it. Basically, it's:
foreach($entries as $entry => $data) {
if( file_exists( "entries/$entry" ) && is_readable( "entries/$entry" ) ) {
$post = file_get_contents("entries/$entry");
echo "<a name='$entry'></a>";
echo "<h2><a href='https://blog.thekyel.com/?anchor=$entry'>$data[title]</a></h2>";
echo "<h4>$data[date]</h4>";
echo "$post";
}else{
echo "Cannot read file: entries/$entry";
}
}