diff --git a/apps/website/blog.php b/apps/website/blog.php
index d7bdde0..c98d7b9 100644
--- a/apps/website/blog.php
+++ b/apps/website/blog.php
@@ -200,7 +200,7 @@ function renderStackSourceLinks(string $stackKey, array $sourceLinks, string $so
-
-
+
diff --git a/apps/website/cv.php b/apps/website/cv.php
index d71b48e..bcbe963 100644
--- a/apps/website/cv.php
+++ b/apps/website/cv.php
@@ -38,7 +38,7 @@ $recruiterKeys = [
CV -
-
+
diff --git a/apps/website/demos.php b/apps/website/demos.php
index e8d1670..5b171a5 100644
--- a/apps/website/demos.php
+++ b/apps/website/demos.php
@@ -72,7 +72,7 @@ $demoCards = [
-
-
+
diff --git a/apps/website/homelab-tree.php b/apps/website/homelab-tree.php
index de88787..20074dc 100644
--- a/apps/website/homelab-tree.php
+++ b/apps/website/homelab-tree.php
@@ -8,7 +8,7 @@ $blogHref = 'blog.php?lang=' . urlencode($lang);
-
-
+
diff --git a/apps/website/index.php b/apps/website/index.php
index c68b781..e36ef92 100644
--- a/apps/website/index.php
+++ b/apps/website/index.php
@@ -24,7 +24,7 @@ $homeProofCards = [
-
+
diff --git a/apps/website/lang_helper.php b/apps/website/lang_helper.php
index e3e4489..6259c7d 100644
--- a/apps/website/lang_helper.php
+++ b/apps/website/lang_helper.php
@@ -56,6 +56,12 @@ function loadRuntimeTranslations(string $file, array $base): array {
return $translations;
}
+function asset_url(string $path): string {
+ $fullPath = __DIR__ . '/' . ltrim($path, '/');
+ $version = is_file($fullPath) ? (string) filemtime($fullPath) : '1';
+ return htmlspecialchars($path . '?v=' . $version);
+}
+
$lang = getLang($availableLangs);
$en = include "$staticLangDir/en.php";