Blogtitle in Header
This commit is contained in:
parent
cdfccd1754
commit
51cd71846b
6 changed files with 48 additions and 4 deletions
|
@ -67,6 +67,11 @@ body{
|
|||
left: 75px;
|
||||
}
|
||||
|
||||
.title > a{
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.nav-img{
|
||||
height: 26px;
|
||||
padding: 19px;
|
||||
|
|
|
@ -44,5 +44,14 @@ class BlogListGenerator {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getName($file){
|
||||
$blog = file_get_contents($file);
|
||||
$blog = $blog . "\n";
|
||||
if(substr($blog, 0, 6) == "%TITLE"){
|
||||
$blog = substr($blog, 8, strpos($blog, "\n") - 8);
|
||||
return $blog;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue