fix accessibility warning
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Ben Harris 2021-03-29 11:57:03 -04:00
parent 61369c7ecc
commit de9c94f339
1 changed files with 8 additions and 6 deletions

View File

@ -33,16 +33,18 @@ if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) {
</p> </p>
<hr> <hr>
<h3>pages:</h3> <h2>pages:</h2>
<?php <ul>
foreach (glob("pages/*.md") as $page) { <?php foreach (glob("pages/*.md") as $page) {
$yaml = $parser->parse(file_get_contents($page))->getYAML(); $yaml = $parser->parse(file_get_contents($page))->getYAML();
if (!$yaml["published"]) continue; ?> if (!$yaml["published"]) continue; ?>
<a href="<?=basename($page, ".md")?>"><?=$yaml["title"]?></a><br> <li><a href="<?=basename($page, ".md")?>"><?=$yaml["title"]?></a></li>
<?php } <?php } ?>
</ul>
} else {
<?php } else {
$pg = $parser->parse(file_get_contents("pages/{$_GET["page"]}.md")); $pg = $parser->parse(file_get_contents("pages/{$_GET["page"]}.md"));
$yml = $pg->getYAML(); $yml = $pg->getYAML();