:target:before { content:\"\"; display:block; height:90px; /* fixed header height*/ margin:-90px 0 0; /* negative fixed header height */ } "; $parser = wiki::factory(true); if(isset($_GET["page"])) { $page=$_GET["page"]; } else { $page=""; } if(preg_match("/[^a-z0-9_-]/", $page)) { $page=""; } if ($page=="" || !file_exists("pages/$page.md")) { $title = "tilde.chat~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.chat wiki!
if you want to contribute, check out the source and open a PR!
commits to master will be automatically deployed
title | description |
---|---|
">=$page["title"]?> | =$page["description"] ?? ""?> |