Update article generation to include a author byline

This commit is contained in:
2022-07-26 10:17:27 -04:00
parent ba25c81ca6
commit 28a4f0021e
2 changed files with 17 additions and 2 deletions
-2
View File
@@ -3,9 +3,7 @@
require ($_SERVER['DOCUMENT_ROOT'].'/common/vendor/autoload.php');
function read_md($MD_Path){
#Markdown parseing code.
echo $md_path;
$MD_Parser = new ParsedownExtra();
#$MD_Path = $md_path;
$MD_File = fopen($MD_Path, "r") or die("File not found.");
$MD_Text = fread($MD_File, filesize($MD_Path));
return $MD_Parser->text($MD_Text);