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,15 +2,14 @@
author: ~cmccabe
published: true
title: teaching and learning on tilde.team
description:
description: how to find and get help learning
category:
- main
- main
---
**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
@ -21,9 +20,9 @@ you're stuck on something, and to offer help to others who are learning.
stuck for ideas? or looking for a bigger challenge? tilde.team also maintains
a [list of internship opportunities and code challenge websites](
https://tilde.team/wiki/learning-opportunities). this list is a new
feature of the site, so please contribute by letting us know (by email,
IRC or pull request) of any other opportunities you know of.
https://tilde.team/wiki/learning-opportunities). this list is a new
feature of the site, so please contribute by letting us know (by email,
IRC or pull request) of any other opportunities you know of.
## 2. learning resources