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">
<?php foreach (glob("pages/*.md") as $page) { <thead>
$yaml = $parser->parse(file_get_contents($page))->getYAML(); <tr>
if (!$yaml["published"]) continue; ?> <th>title</th>
<a href="<?=basename($page, ".md")?>"><?=$yaml["title"]?></a><br> <th>description</th>
<?php } ?> </tr>
</thead>
<tbody>
<?php foreach (glob("pages/*.md") as $page) {
$yaml = $parser->parse(file_get_contents($page))->getYAML();
if (!$yaml["published"]) continue; ?>
<tr><td><a href="<?=basename($page, ".md")?>"><?=$yaml["title"]?></a></td> <td><?=$yaml["description"] ?? ""?></td></tr>
<?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,28 +2,27 @@
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
--- ---
**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
general computing skills through the command line interface. we think it is general computing skills through the command line interface. we think it is
important that this happens in a fun social environment. for this reason we important that this happens in a fun social environment. for this reason we
encourage users to meet each other, to collaborate, to ask questions when encourage users to meet each other, to collaborate, to ask questions when
you're stuck on something, and to offer help to others who are learning. 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 stuck for ideas? or looking for a bigger challenge? tilde.team also maintains
a [list of internship opportunities and code challenge websites]( a [list of internship opportunities and code challenge websites](
https://tilde.team/wiki/learning-opportunities). this list is a new https://tilde.team/wiki/learning-opportunities). this list is a new
feature of the site, so please contribute by letting us know (by email, feature of the site, so please contribute by letting us know (by email,
IRC or pull request) of any other opportunities you know of. IRC or pull request) of any other opportunities you know of.
## 2. learning resources ## 2. learning resources