Browse Source

add php issue listing

pull/4/head
Ben Harris 2 years ago
parent
commit
393d46f8d3
  1. 4
      .gitignore
  2. 33
      dist/index.php

4
.gitignore

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

33
dist/index.php

@ -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>
Loading…
Cancel
Save