show pretty urls

This commit is contained in:
Ben Harris 2019-07-09 00:54:53 -04:00
parent dcf9d79563
commit 3051d69ab3
Signed by untrusted user: ben
GPG Key ID: 4E0AF802FFF7960C
3 changed files with 14 additions and 5 deletions

View File

@ -4,4 +4,13 @@ Similar to [khuxkm's previous attempt](https://github.com/tildetown/tilde-rfcs),
However, unlike that attempt, this system will use YAML front-matter.
See [RFC 0](https://rfc.tildeverse.org/rfcs/?0) for more info.
See [RFC 0](https://rfc.tildeverse.org/rfcs/0) for more info.
## nginx configs
```
location ~* ^/rfcs/(.+)$ {
try_files $uri $uri/ /rfcs/index.php?$1;
include snippets/php.conf;
}
```

View File

@ -10,7 +10,7 @@
unless otherwise stated within the Standards document, are invalid.</p>
<footer>
<cite>
<a href="/rfcs/?0">RFC 0: Standard 1: RFC Format and Semantics</a>
<a href="/rfcs/0">RFC 0: Standard 1: RFC Format and Semantics</a>
by <a href="https://tilde.team/~khuxkm/">Robert Miles</a> (aka khuxkm)
</cite>
</footer>
@ -18,7 +18,7 @@
<p>This system aims to help codify some things about Tildeverse tilde servers.</p>
<h3>Submission guidelines (<a href="/rfcs/?0">from the standard</a>)</h3>
<h3>Submission guidelines (<a href="/rfcs/0">from the standard</a>)</h3>
<p>An RFC should be submitted as a PR to the <a href="https://tildegit.org/tildeverse/rfcs">git repo</a>.</p>

View File

@ -81,7 +81,7 @@
<?php foreach ($rfcs as $rfc) {
if ($rfc["yml"]["status"] !== "Accepted") continue;
?>
<li><a href="/rfcs/?<?=$rfc["num"]?>">RFC <?=$rfc["num"]?>: <?=$rfc["yml"]['title']?></a></li>
<li><a href="/rfcs/<?=$rfc["num"]?>">RFC <?=$rfc["num"]?>: <?=$rfc["yml"]['title']?></a></li>
<?php } ?>
</ul>
@ -90,7 +90,7 @@
<?php foreach ($rfcs as $draft) {
if ($draft["yml"]["status"] === "Accepted") continue;
?>
<li><a href="/rfcs/?<?=$draft["num"]?>">Draft <?=$draft["num"]?>: <?=$draft["yml"]["title"]?></a></li>
<li><a href="/rfcs/<?=$draft["num"]?>">Draft <?=$draft["num"]?>: <?=$draft["yml"]["title"]?></a></li>
<?php } ?>
</ul>