summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.php b/index.php
index 51d6386..d311c66 100644
--- a/index.php
+++ b/index.php
@@ -142,7 +142,11 @@
--textColour: <?php echo pageColours($currentPage)[0x1] ?>;
<?php
- $backgroundImage = pageBackgroundImage($currentPage);
+ $backgroundImage = match ($currentPage) {
+ "benoit" => "/svg/benoitBackground.svg",
+ "dux" => "/image/duxBackground.webp",
+ default => null,
+ };
if (!is_null($backgroundImage)) {
echo 'background-image: url("' . $backgroundImage . '");';
@@ -192,7 +196,7 @@
</div>
<?php
- $glyphAddr = pageGlyph($currentPage);
+ $glyphAddr = "/svg/glyph/" . $currentPage . ".svg";
echo "<img alt=\"$currentPage\" id=\"glyph\" src=\"$glyphAddr\" />";
?>