diff --git a/wiki/index.php b/wiki/index.php index 10d932b..59c3e0a 100644 --- a/wiki/index.php +++ b/wiki/index.php @@ -14,37 +14,42 @@ a.anchor { } '; -include __DIR__.'/../header.php'; $parser = new Mni\FrontYAML\Parser(); if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) { -// render wiki index ?> + $title = "tilde.team~wiki"; + include __DIR__.'/../header.php'; + // render wiki index ?> -

tilde.team wiki

+

tilde.team wiki

-

welcome to the tilde.team wiki!

+

welcome to the tilde.team wiki!

-

if you want to contribute, check out the source!

+

if you want to contribute, check out the source!

-
-

pages:

+
+

pages:

-parse(file_get_contents($page))->getYAML(); - if (!$yaml["published"]) continue; ?> - ">
+ parse(file_get_contents($page))->getYAML(); + if (!$yaml["published"]) continue; ?> + ">
-parse(file_get_contents("pages/{$_GET["page"]}.md")); + $title = $pg->getYAML()['title'] . " | tilde.team~wiki"; + include __DIR__.'/../header.php'; // show a single page ?> + < ~wiki
- parse(file_get_contents("pages/{$_GET['page']}.md"))->getContent()?> + getContent()?>
.md"> source diff --git a/wiki/pages/getting-started.md b/wiki/pages/getting-started.md index 5142f60..70cf26a 100644 --- a/wiki/pages/getting-started.md +++ b/wiki/pages/getting-started.md @@ -1,7 +1,7 @@ --- author: ~ben published: true -title: getting-started +title: getting started category: - main ---