Browse Source

show pretty urls

pull/11/head
Ben Harris 2 years ago
parent
commit
3051d69ab3
Signed by untrusted user: ben GPG Key ID: 4E0AF802FFF7960C
  1. 11
      README.md
  2. 4
      index.php
  3. 4
      rfcs/index.php

11
README.md

@ -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;
}
```

4
index.php

@ -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>

4
rfcs/index.php

@ -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>

Loading…
Cancel
Save