implemented preview of article markdown via AJAX

This commit is contained in:
2025-04-12 11:00:44 -06:00
parent 4f0262aa89
commit fb35e93226
8 changed files with 161 additions and 84 deletions
+2 -5
View File
@@ -1,18 +1,15 @@
<?php
// Initializes environment variables and other stuff.
// if (!isset($_SESSION['initialized']))
require_once 'functions/init.php';
require_once 'functions/functions.php';
include_once 'components/head.php';
echo home_content();
include_once 'components/foot.php';
function home_content()
{
$content = '
$content = '
<div class="article">
<h1>Vintage Coding</h1>
<h3>Intentional Craftsmanship Over Ephemeral Trends</h3>
@@ -34,5 +31,5 @@ function home_content()
</div>
';
return $content;
return $content;
}