|
@@ -1,12 +1,21 @@
|
|
|
<?php
|
|
|
+ $commit = trim(file_get_contents("../.git/refs/heads/main"));
|
|
|
+
|
|
|
+ $text = substr($commit, 0, 7);
|
|
|
+ $link = "https://codeberg.org/sun/Tent/commit/" . $commit;
|
|
|
+
|
|
|
$config = [
|
|
|
|
|
|
"title" => "Tent",
|
|
|
|
|
|
|
|
|
- "text" => "© 2023-present, Sunny. Not affiliated with Bandcamp. Open-source at <a href=\"https://codeberg.org/sun/Tent\">Codeberg</a>.",
|
|
|
+ "text" => "© 2023-present, Sunny. Not affiliated with Bandcamp. Running commit <a href=\"" . $link . "\">" . $text . "</a>.",
|
|
|
|
|
|
|
|
|
"identity" => null
|
|
|
];
|
|
|
+
|
|
|
+ unset($commit);
|
|
|
+ unset($text);
|
|
|
+ unset($link);
|
|
|
?>
|