From fb1c6495806ab85de87b995427668da04a3a7233 Mon Sep 17 00:00:00 2001 From: manfromhuh Date: Sun, 17 Jul 2022 17:50:02 -0400 Subject: [PATCH] Update index.php to use the function Also seperates the HTML used for just articles from the Markdown parsing. --- common/php/index.php | 2 +- common/php/md_read.php | 32 -------------------------------- 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/common/php/index.php b/common/php/index.php index d1efd11..b592ed1 100644 --- a/common/php/index.php +++ b/common/php/index.php @@ -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'); diff --git a/common/php/md_read.php b/common/php/md_read.php index 893822b..9e3c64d 100644 --- a/common/php/md_read.php +++ b/common/php/md_read.php @@ -11,36 +11,4 @@ return $MD_Parser->text($MD_Text); fclose($MD_File); } - echo "
\n" . /* Adds the option to change the font size of the article text. */ - "
- Text Size: - - - -
- -
\n - - ". - read_md("article.md") . "\n
"; - - echo "\n\n"; - echo("\n"); - if ($tag_data != NULL){ - $page_tags = str_getcsv($tag_data); - natcasesort($page_tags); - echo "

Tags

\n\n
\n"; - } - include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/modal.php'); ?>