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>
|
</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();
|
||||||
|
|
Loading…
Reference in New Issue