Fix logoExists function to resolve web paths correctly and update stylesheet link to use absolute path
This commit is contained in:
parent
2dcdf6e71c
commit
41c466733c
@ -61,7 +61,7 @@ $projects = [
|
||||
*/
|
||||
function logoExists(string $webPath): bool {
|
||||
$base = rtrim($_SERVER['DOCUMENT_ROOT'] ?? '/var/www/fabianschieder.com', '/');
|
||||
$full = $base . '/' . ltrim($webPath, '/');
|
||||
$full = $base . ltrim($webPath, '.');
|
||||
// Debug: echo "<!-- checking: $full -->\n";
|
||||
return is_file($full);
|
||||
}
|
||||
@ -73,7 +73,7 @@ function logoExists(string $webPath): bool {
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Fabian Schieder</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user