3 ms·
For my site this is index.php <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="../style.css"> <meta name="viewport" content=
by swayvil 5y ago
For my site this is index.php
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="../style.css">
<meta name="viewport" content="width=device-width">
</head>
<body>
<div class="main">
<?php
include "../Parsedown.php";
$pd=new Parsedown();
$mc=file_get_contents("../contentHeader.md");
echo $pd->text($mc);
$mc=file_get_contents("contentMain.md");
echo $pd->text($mc);
$mc=file_get_contents("../contentFooter.md");
echo $pd->text($mc);
?>
</div>
</body>
</html>
The rest is Parsedown.php, markdown content and some images. Arranged in a directory tree. An index and a contentMain.md in every directory.
After trying several "simple" Content Management Systems, this is where I arrived. I wish I did it 10 years ago.