forked from team/site
fix accessibility warning
This commit is contained in:
parent
61369c7ecc
commit
de9c94f339
|
@ -33,16 +33,18 @@ if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) {
|
|||
</p>
|
||||
|
||||
<hr>
|
||||
<h3>pages:</h3>
|
||||
<h2>pages:</h2>
|
||||
|
||||
<?php
|
||||
foreach (glob("pages/*.md") as $page) {
|
||||
<ul>
|
||||
<?php foreach (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>
|
||||
<?php }
|
||||
<li><a href="<?=basename($page, ".md")?>"><?=$yaml["title"]?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
} else {
|
||||
|
||||
<?php } else {
|
||||
|
||||
$pg = $parser->parse(file_get_contents("pages/{$_GET["page"]}.md"));
|
||||
$yml = $pg->getYAML();
|
||||
|
|
Loading…
Reference in New Issue