forked from 20xd6/simple_blog
Add article tags
This commit is contained in:
parent
5cce4f0b0d
commit
ad07963e4b
@ -4,6 +4,7 @@
|
|||||||
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/menu.php');
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/menu.php');
|
||||||
//Looks for an article.md to see if the current directory is an article or not
|
//Looks for an article.md to see if the current directory is an article or not
|
||||||
//If it is not then it is a menu page.
|
//If it is not then it is a menu page.
|
||||||
|
echo "<article>";
|
||||||
if (file_exists('byline.md')){
|
if (file_exists('byline.md')){
|
||||||
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
|
||||||
echo read_md('byline.md');
|
echo read_md('byline.md');
|
||||||
@ -12,5 +13,6 @@
|
|||||||
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
|
||||||
echo read_md('author.md');
|
echo read_md('author.md');
|
||||||
}
|
}
|
||||||
|
echo "</article>";
|
||||||
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/footer.php');
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/footer.php');
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user