Set a specific name for the main blog

This commit is contained in:
mmk2410 2015-07-03 10:21:20 +02:00
parent a1cf5b45be
commit 8fe84b6ef7
3 changed files with 17 additions and 1 deletions

View file

@ -73,11 +73,21 @@ THE SOFTWARE.
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) {
BlogListGenerator::listBlog("./blogs/", $blog, $blogtitle);
if(empty($blogmainname)){
$blogmaintitle = $blogtitle;
} else {
$blogmaintitle = $blogmainname;
}
BlogListGenerator::listBlog("./blogs/", $blog, $blogmaintitle);
}
}
}