Added Intro feature
This commit is contained in:
parent
63f63489bc
commit
94086308a1
3 changed files with 17 additions and 2 deletions
16
index.php
16
index.php
|
@ -23,13 +23,25 @@
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<!--Replace 'index.php' with the link to this file
|
<!--Replace 'index.php' with the link to this file
|
||||||
and 'Blog' with your Blogtitle-->
|
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-->
|
<!--Set here the link to your Homepage or delete the following line-->
|
||||||
<a href="../" class="home">Home</a>
|
<a href="../" class="home">Home</a>
|
||||||
</div>
|
</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!-->
|
<!--DON'T CHANGE ANYTHING HERE!-->
|
||||||
<?php
|
<?php
|
||||||
require_once 'res/Parsedown.php';
|
|
||||||
$xml = simplexml_load_file('xml/posts.xml');
|
$xml = simplexml_load_file('xml/posts.xml');
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
|
|
2
md/intro.md
Normal file
2
md/intro.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#pBlog
|
||||||
|
This is the Blog of the Blog Engine **pBlog**
|
|
@ -156,6 +156,7 @@ Usage: <a class=".text_button_flat_colored">YOUR TEXT</a>
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 14px;
|
line-height: 14px;
|
||||||
letter-spacing: 0.01px;
|
letter-spacing: 0.01px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cc a{
|
.cc a{
|
||||||
|
|
Reference in a new issue