39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
<?php
|
|
require('config.php');
|
|
|
|
$title = "$author's blog";
|
|
$contents = scandir('articles');
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><?php echo $title ?></title>
|
|
<link rel="stylesheet" href="../css/style.css">
|
|
<link rel="stylesheet" href="./benjamin-blog.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<p>
|
|
<a href="https://tilde.team/~benko11/">~ back to the personal page</a>
|
|
</p>
|
|
|
|
<h1><?php echo $title ?></h1>
|
|
|
|
<section>
|
|
<?php
|
|
foreach ($contents as $item) {
|
|
if ($item == '.' || $item == '..') continue;
|
|
?>
|
|
<p>
|
|
<a href="https://tilde.team/~benko11/blog/articles/<?php echo $item ?>"><?php echo $item ?></a>
|
|
</p>
|
|
<?php
|
|
}
|
|
?>
|
|
</section>
|
|
</div>
|
|
</body>
|
|
</html>
|