summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-02-07 20:04:05 -0500
committerFreya Murphy <freya@freyacat.org>2025-02-07 20:04:05 -0500
commit2113f568229cef125a676c7f4dbbe8bfd2304e69 (patch)
treed9afa085c179fd42ba112b306b61a16cf75836e5 /index.php
parentremove base elem (diff)
downloadrit.wtf-main.tar.gz
rit.wtf-main.tar.bz2
rit.wtf-main.zip
add copyrightHEADmain
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/index.php b/index.php
index 447b300..78da4de 100644
--- a/index.php
+++ b/index.php
@@ -95,13 +95,18 @@ function __make_assets(): object {
),
);
+ define('REVS', array(
+ 'main.css' => 2,
+ ));
+
function update_paths(&$data, $path) {
foreach ($data as $key => $value) {
if (is_array($value)) {
update_paths($value, "$path/$key");
$data[$key] = $value;
} else {
- $data[$key] = "$path/$value?rev=1";
+ $rev = REVS[$value] ?? 1;
+ $data[$key] = "{$path}/{$value}?rev={$rev}";
}
}
$data = (object) $data;