forked from team/site
1
0
Fork 0
tilde.team/wiki/index.php

29 lines
656 B
PHP
Raw Normal View History

2018-06-04 02:18:02 +00:00
<?php
require __DIR__.'/../vendor/autoload.php';
2018-06-04 06:18:28 +00:00
include __DIR__.'/../header.php';
2018-06-04 02:18:02 +00:00
2018-06-04 06:18:28 +00:00
$parser = new Mni\FrontYAML\Parser();
2018-06-04 02:18:02 +00:00
?>
<h1>tilde.team wiki</h1>
2018-06-04 06:18:28 +00:00
<p>welcome to the tilde.team wiki!</p>
2018-06-04 02:18:02 +00:00
2018-06-04 22:14:56 +00:00
<p>if you want to contribute, check out the <a href="https://git.tilde.team/meta/site/src/branch/master/wiki">source!</a></p>
2018-06-04 02:18:02 +00:00
2018-06-04 06:18:28 +00:00
<hr>
<h3>pages:</h3>
2018-06-04 02:18:02 +00:00
<?php
2018-06-04 06:18:28 +00:00
foreach (glob("pages/*.md") as $page) {
$parsed = $parser->parse(file_get_contents($page));
$yaml = $parsed->getYAML();
if (!$yaml["published"]) continue;
?>
<a href="/wiki/view.php?page=<?=basename($page, ".md")?>"><?=$yaml["title"]?></a><br>
<?php }
2018-06-04 02:18:02 +00:00
include __DIR__.'/../footer.php';