1
0
forked from team/site

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> <hr>
<h2>pages:</h2> <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) { <?php foreach (glob("pages/*.md") as $page) {
$yaml = $parser->parse(file_get_contents($page))->getYAML(); $yaml = $parser->parse(file_get_contents($page))->getYAML();
if (!$yaml["published"]) continue; ?> 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 } ?> <?php } ?>
</tbody>
</table>
<?php } else { <?php } else {

View File

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

View File

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

View File

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