Set a specific name for the main blog
This commit is contained in:
parent
a1cf5b45be
commit
8fe84b6ef7
3 changed files with 17 additions and 1 deletions
12
index.php
12
index.php
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue