This commit is contained in:
Anton McClure 2020-07-02 16:46:36 -04:00
parent 4e8573ed19
commit 3b8468bd71
No known key found for this signature in database
GPG Key ID: 95F468320CF39788
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) {
foreach (array_reverse(glob("pages/*.md")) as $page) {
$yaml = $parser->parse(file_get_contents($page))->getYAML();
if (!$yaml["published"]) continue; ?>
<a href="<?=basename($page, ".md")?>"><?=$yaml["title"]?></a><br>
<li><a href="<?=basename($page, ".md")?>"><?=$yaml["title"]?></a></li>
<?php } ?>
</ul>
<?php } else {