";
echo "
Blogs of $blogtitle:
";
$blogs = scandir("./blogs/");
foreach ($blogs as $blog) {
if (strlen($blog) >= 3 && substr($blog, -3) == ".md") {
if ($getblog == "") {
if ($blog != "main.md") {
BlogListGenerator::listBlog("./blogs/", $blog, $blogtitle);
}
} else {
if ($getblog . ".md" != $blog) {
BlogListGenerator::listBlog("./blogs/", $blog, $blogtitle);
}
}
}
}
echo "";
} else {
?>
Go back
setBreaksEnabled(true)
->text($file);
echo $intro;
?>
= 3 && substr($article, -3) == ".md") {
ArticleGenerator::newArticle($articlesdir, $article, $getblog);
}
}
}
} else if ($getarticle == "") {
$articles = scandir($articlesdir, 1);
foreach ($articles as $article) {
if (strlen($article) >= 3 && substr($article, -3) == ".md") {
ArticleGenerator::newArticle($articlesdir, $article, $getblog);
}
}
} else {
ArticleGenerator::newArticle($articlesdir, $getarticle . ".md", $getblog);
include './res/php/SocialBar.php';
include './res/php/Disqus.php';
}
?>