";
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") {
if (empty($blogmainname)) {
$blogmaintitle = $blogtitle;
} else {
$blogmaintitle = $blogmainname;
}
BlogListGenerator::listBlog("./blogs/", $blog, $blogtitle);
}
} else {
if ($getblog . ".md" != $blog) {
if (empty($blogmainname)) {
$blogmaintitle = $blogtitle;
} else {
$blogmaintitle = $blogmainname;
}
BlogListGenerator::listBlog("./blogs/", $blog, $blogmaintitle);
}
}
}
}
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';
}
?>