forked from 20xd6/simple_blog
Add generic author index.php
This commit is contained in:
parent
4929ea5eb8
commit
340997fa89
14
common/authors/index.php
Normal file
14
common/authors/index.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
//The common file used to render pages on the blog.
|
||||||
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/header.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
|
||||||
|
//If it is not then it is a menu page.
|
||||||
|
if (file_exists('byline.md')){
|
||||||
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
|
||||||
|
}
|
||||||
|
if (file_exists('author.md')){
|
||||||
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
|
||||||
|
}
|
||||||
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/footer.php');
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user