make /wiki a <table>

This commit is contained in:
Ben Harris 2022-06-14 19:12:00 -04:00
parent 68d88e3acb
commit 9f5dcbd0ab
4 changed files with 24 additions and 15 deletions

View File

@ -32,12 +32,21 @@ if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) {
<hr>
<h2>pages:</h2>
<table class="table table-responsive table-hover table-striped">
<thead>
<tr>
<th>title</th>
<th>description</th>
</tr>
</thead>
<tbody>
<?php foreach (glob("pages/*.md") as $page) {
$yaml = $parser->parse(file_get_contents($page))->getYAML();
if (!$yaml["published"]) continue; ?>
<a href="<?=basename($page, ".md")?>"><?=$yaml["title"]?></a><br>
<tr><td><a href="<?=basename($page, ".md")?>"><?=$yaml["title"]?></a></td> <td><?=$yaml["description"] ?? ""?></td></tr>
<?php } ?>
</tbody>
</table>
<?php } else {

View File

@ -2,6 +2,7 @@
author: ~evn
published: true
title: lua
description: set up tools to write lua code
category:
- main
---

View File

@ -2,7 +2,7 @@
author: ~erxeto
published: true
title: mailing list netiquette
description: tildeverse mailing lists netiquette
description: tildeverse mailing lists etiquette guide
category:
- main
---

View File

@ -2,7 +2,7 @@
author: ~cmccabe
published: true
title: teaching and learning on tilde.team
description:
description: how to find and get help learning
category:
- main
---
@ -10,7 +10,6 @@ category:
**tl;dr** bring project ideas. bring your skills. learn by doing.
help others who are trying to learn. share what you're working on.
## 1. start learning, start teaching!
an important goal of tilde.team is to help you learn linux, programming, and