"; $parser = wiki::factory(true); if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) { $title = "tilde.team~wiki"; $additional_head .= " "; include __DIR__.'/../header.php'; $pages = []; foreach (glob("pages/*.md") as $page) { $yaml = $parser->parse(file_get_contents($page))->getYAML(); if (!$yaml["published"]) continue; $pages[] = [ "title" => $yaml["title"], "description" => $yaml["description"], "name" => basename($page, ".md"), ]; } usort($pages, function($a, $b) { return $a["title"] <=> $b["title"]; }); // render wiki index ?>
welcome to the tilde.team wiki!
if you want to contribute, check out the source and open a PR!
title | description |
---|---|
">=$page["title"]?> | =$page["description"] ?? ""?> |