add php issue listing

This commit is contained in:
Ben Harris 2019-09-23 11:55:31 -04:00
parent 892f13da8e
commit 393d46f8d3
2 changed files with 35 additions and 2 deletions

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
*.pdf
*.html
dist/*.pdf
dist/*.html

33
dist/index.php vendored Normal file
View File

@ -0,0 +1,33 @@
<!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">
<link rel="stylesheet" href="https://tilde.team/css/hacker.css">
<title>tildeverse zine</title>
</head>
<body>
<div class="container">
<h1>tildeverse zine</h1>
<p>this is the tildeverse zine</p>
<p>get involved and send in some content: <a href="https://tildegit.org/tildeverse/zine">tildeverse/zine</a></p>
<h2>issues</h2>
<?php foreach (glob("dist/*.html") as $issue) {
$issue = mb_substr(basename($issue, ".html"), 6); ?>
<h4>issue <?=$issue?></h4>
<p>
<a href="issue-<?=$issue?>.html">html version</a>
<a href="issue-<?=$issue?>.pdf">pdf version</a>
</p>
<?php } ?>
</div>
</body>
</html>