Update index.php to use the function

Also seperates the HTML used for just articles from the Markdown parsing.
This commit is contained in:
2022-07-17 17:50:02 -04:00
parent 3a2dc7651a
commit fb1c649580
2 changed files with 1 additions and 33 deletions

View File

@@ -5,7 +5,7 @@
//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('article.md')){
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/article.php');
} else {
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/h1_month.php');
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/page_menu.php');