php-ify things
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f7fba54e95
commit
e45b7c476c
|
@ -29,7 +29,12 @@
|
|||
<hr class="zig">
|
||||
<hr class="zag">
|
||||
<h3>latest memo</h3>
|
||||
<?php include('memos/latest.html'); ?>
|
||||
<?php
|
||||
$dir = './memos/memos/';
|
||||
$scanned_directory = array_diff(scandir($dir), array('..', '.'));
|
||||
$target_file = $dir.max($scanned_directory);
|
||||
include $target_file;
|
||||
?>
|
||||
<a href="/memos/">see more</a>
|
||||
<hr class="zig">
|
||||
<hr class="zag">
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>memos - south london</title>
|
||||
<link rel="stylesheet" href="./main.css">
|
||||
<link rel="stylesheet" href="/memos/main.css">
|
||||
<link rel="stylesheet" href="/memos/fonts.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
@ -11,13 +13,13 @@
|
|||
<h1>memos</h1>
|
||||
</header>
|
||||
<main>
|
||||
<div class="memo" id="1">
|
||||
<h2>memos</h2>
|
||||
<p>
|
||||
hello, this is where any news will go. subscribe to rss if you're interested!
|
||||
</p>
|
||||
<em class="attr">~cark - 12/04/2021</em>
|
||||
</div>
|
||||
<?php
|
||||
foreach (glob("memos/*.html") as $filename)
|
||||
{
|
||||
include $filename;
|
||||
}
|
||||
?>
|
||||
|
||||
</main>
|
||||
<footer><a href="./memos.rss">rss</a></footer>
|
||||
</body>
|
|
@ -1,7 +1,4 @@
|
|||
<link rel="stylesheet" href="/memos/fonts.css">
|
||||
<link rel="stylesheet" href="/memos.css">
|
||||
|
||||
<div class="memo" id="1">
|
||||
<div class="memo" id="01">
|
||||
<h2>memos</h2>
|
||||
<p>
|
||||
hello, this is where any news will go. subscribe to rss if you're interested!
|
Reference in New Issue