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 = '../'; $bloghomeurl = '../';
// Home name - Set here an individual name for your main page // Home name - Set here an individual name for your main page
$bloghomename = 'Home'; $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 // Intro - set yes if you have a blog intro and no if you don't have one
$blogintro = 'yes'; $blogintro = 'yes';
// Disqus - Provide here your Disqus shortname. Leave empty if you don't want to use it. // 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 (strlen($blog) >= 3 && substr($blog, -3) == ".md") {
if ($getblog == "") { if ($getblog == "") {
if ($blog != "main.md") { if ($blog != "main.md") {
if(empty($blogmainname)){
$blogmaintitle = $blogtitle;
} else {
$blogmaintitle = $blogmainname;
}
BlogListGenerator::listBlog("./blogs/", $blog, $blogtitle); BlogListGenerator::listBlog("./blogs/", $blog, $blogtitle);
} }
} else { } else {
if ($getblog . ".md" != $blog) { if ($getblog . ".md" != $blog) {
BlogListGenerator::listBlog("./blogs/", $blog, $blogtitle); if(empty($blogmainname)){
$blogmaintitle = $blogtitle;
} else {
$blogmaintitle = $blogmainname;
}
BlogListGenerator::listBlog("./blogs/", $blog, $blogmaintitle);
} }
} }
} }