add_byline #17

Merged
20xd6 merged 19 commits from manfromhuh/simple_blog:add_byline into master 2022-07-26 10:33:29 -04:00
Showing only changes of commit ad07963e4b - Show all commits

View File

@ -4,6 +4,7 @@
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.
echo "<article>";
if (file_exists('byline.md')){
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
echo read_md('byline.md');
@ -12,5 +13,6 @@
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
echo read_md('author.md');
}
echo "</article>";
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/footer.php');
?>