forked from nat/webbed-site
30 lines
1.3 KiB
HTML
30 lines
1.3 KiB
HTML
<html>
|
|
<head>
|
|
<title>Subunit of the blogosphere</title>
|
|
<style>
|
|
$[cat style.css]
|
|
</style>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
</head>
|
|
<body>
|
|
$[include html/header.html]
|
|
<main>
|
|
<section>
|
|
<h1>My subunit of the blogosphere</h1>
|
|
<p>I don't know if I will use this, but I am bored and thus making a blog system.</p>
|
|
</section>
|
|
<section>
|
|
<h2>Posts</h2>
|
|
<table>
|
|
<tbody><tr><th><p>Title</p></th><th><p>Editted</p></th><th><p>Posted</p></th><th><p>Size</p></th></tr>
|
|
<tr><th colspan="4"><hr></th></tr>
|
|
$[for file in $(ls html/blog/posts); do echo "<tr><td><a href=\"/html/blog/posts/$file\">$file</a></td><td>$(stat -c %y "html/blog/posts/$file" | head -c 16)</td><td><p>$(stat -c %y html/blog/posts/$file | head -c 10)</p></td><td align=\"right\">$(numfmt --to=iec --suffix=B $(stat -c %s "html/blog/posts/$file"))</td></tr>"; done | sed 's/\/\//\//g']
|
|
<tr><th colspan="4"><hr></th></tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
</main>
|
|
$[include html/footer.html]
|
|
</body>
|
|
</html>
|