summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
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;