wiki fix
This commit is contained in:
parent
4e8573ed19
commit
3b8468bd71
|
@ -17,7 +17,7 @@ if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) {
|
||||||
foreach (array_reverse(glob("pages/*.md")) as $page) {
|
foreach (array_reverse(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>
|
</ul>
|
||||||
<?php } else {
|
<?php } else {
|
||||||
|
|
Loading…
Reference in New Issue