Compare commits

...

3 Commits

Author SHA1 Message Date
d8fd74d90f
Add canonical URL 2025-08-05 17:09:02 +02:00
7d6c82a225
Add random repo route 2025-05-07 13:44:08 +02:00
512871ad87
Update webring 2025-05-06 08:53:03 +02:00
3 changed files with 8 additions and 3 deletions

6
api/random_repo.php Normal file
View File

@ -0,0 +1,6 @@
<?php
$repos = json_decode(file_get_contents("https://git.reim.ar/api/v1/repos/search"))->data;
$repo = $repos[array_rand($repos)];
header("Location: $repo->html_url");

View File

@ -4,6 +4,7 @@
<meta name="description" content="Reimar's epic site">
<meta name="theme-color" content="#2962FF">
<meta name="color-scheme" content="dark light">
<meta name="canonical" content="https://reim.ar<?= parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH) ?>">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>Reimar</title>
<link rel="stylesheet" href="/assets/style/main.css" onload="linkOnloadSupported = true">

View File

@ -63,9 +63,7 @@
&bull;
<a href="https://sfja.dk">sfja.dk</a>
&bull;
<a href="https://mtkonge.dk">mtkonge.dk</a>
&bull;
<a href="https://handskemager.xyz">handskemager.xyz</a>
<a href="https://mtko.dk">mtko.dk</a>
</center>
</div>