blob: bcf17675411ac52c9b5be9f340bac15d84ece72c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Squibid's Blog</title>
<link rel="stylesheet" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<style type="text/css">
#bloglist {
text-align: left;
font-size: 2ch;
}
p#bloglist span {
float: right;
color: white;
}
</style>
<body style="background-color: #161617;">
<div id="master">
<header>
<h1 id="font", style="margin-bottom: 0">
<a href="https://squi.bid">Squibid's</a> Blog
</h1>
</header>
<hr style="color: #f7f7f7;">
<p id="bloglist">
<?php
$path = "blog";
$files = scandir($path."/");
foreach ($files as $file) {
if (preg_match("/.+?(?=\.html|\.php)/", $file, $matches)) {
$tags = get_meta_tags($path.'/'.$file);
printf('<a href='.$path.'/%s>%s</a><span>%s</span><br>',
$matches[0], str_replace("-", " ", $matches[0]),
$tags["date"] ? $tags["date"] : "¯\_(ツ)_/¯");
}
}
?>
</p>
<h2 id="font" style="text-align: center; margin-top: 0;">
<a href="/blog/rss.xml", title="rss">subscribe</a>
</h2>
</div>
</body>
</html>
|