Added Intro feature

This commit is contained in:
mmk2410 2015-02-22 02:49:38 +01:00
parent 63f63489bc
commit 94086308a1
3 changed files with 17 additions and 2 deletions

View File

@ -23,13 +23,25 @@
<div class="header">
<!--Replace 'index.php' with the link to this file
and 'Blog' with your Blogtitle-->
<nobr><a href="index.php" class="title">Blog</a></nobr>
<nobr><a href="index.php" class="title">pBlog</a></nobr>
<!--Set here the link to your Homepage or delete the following line-->
<a href="../" class="home">Home</a>
</div>
<section>
<span class="text">
<?php
require_once 'res/Parsedown.php';
if(file_exists('md/intro.md')){
$file = file_get_contents('md/intro.md');
echo Parsedown::instance()
->setBreaksEnabled(true)
->text($file);
}
?>
</span>
</section>
<!--DON'T CHANGE ANYTHING HERE!-->
<?php
require_once 'res/Parsedown.php';
$xml = simplexml_load_file('xml/posts.xml');
?>
<?php

2
md/intro.md Normal file
View File

@ -0,0 +1,2 @@
#pBlog
This is the Blog of the Blog Engine **pBlog**

View File

@ -156,6 +156,7 @@ Usage: <a class=".text_button_flat_colored">YOUR TEXT</a>
font-size: 12px;
line-height: 14px;
letter-spacing: 0.01px;
text-align: center;
}
.cc a{