diff --git a/blogs/rumor-edge.md b/blogs/rumor-edge.md new file mode 100644 index 0000000..5bf0148 --- /dev/null +++ b/blogs/rumor-edge.md @@ -0,0 +1,3 @@ +%TITLE: Rumor Edge + +This is a mysterious collection about evil messages, we like to call... RUMORS. \ No newline at end of file diff --git a/config.php b/config.php index 791dac6..dc688f3 100644 --- a/config.php +++ b/config.php @@ -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. diff --git a/index.php b/index.php index 2034da3..efc9af4 100644 --- a/index.php +++ b/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); } } }