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

3
blogs/rumor-edge.md Normal file
View File

@ -0,0 +1,3 @@
%TITLE: Rumor Edge
This is a mysterious collection about evil messages, we like to call... RUMORS.

View File

@ -17,6 +17,9 @@ $bloghome = 'yes';
$bloghomeurl = '../';
// Home name - Set here an individual name for your main page
$bloghomename = 'Home';
// Main Blog name -> Set a specific name for your name blog
// This value is empty by default
$blogmainname = '';
// Intro - set yes if you have a blog intro and no if you don't have one
$blogintro = 'yes';
// Disqus - Provide here your Disqus shortname. Leave empty if you don't want to use it.

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);
}
}
}