update
This commit is contained in:
23
misc/404.html
Normal file
23
misc/404.html
Normal file
@ -0,0 +1,23 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Squibid's Site - 404</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>
|
||||
h1 {
|
||||
color: var(--cyan);
|
||||
font-family: sans-serif;
|
||||
font-size: 404px;
|
||||
width: 100vw;
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body style="background-color: #161617;">
|
||||
<h1><a href="/">whoops</a></h1>
|
||||
</body>
|
||||
</html>
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
function entries($path = "blog", $limit = false) {
|
||||
function blog_entries($path = "blog", $limit = false) {
|
||||
$files = scandir($path."/");
|
||||
$entries = [];
|
||||
$i = 0;
|
||||
@ -7,9 +7,9 @@
|
||||
foreach ($files as $file) {
|
||||
if (is_dir($path.'/'.$file) && $file[0] != ".") {
|
||||
$tags = get_meta_tags($path.'/'.$file.'/index.html');
|
||||
$entries[$i][0] = preg_replace("/\//", "", $tags["date"]);
|
||||
$entries[$i][0] = preg_replace("/\//", "", $tags["date"]);
|
||||
$entries[$i][1] = $file;
|
||||
$entries[$i][2] = $tags["date"];
|
||||
$entries[$i][2] = $tags["date"];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user