refactor: Update asset paths in header and footer for consistency and improved resource loading

This commit is contained in:
𝓜𝓪𝓬𝓮™
2026-04-02 13:34:36 +02:00
parent 0b4f57ed02
commit a7647f3c9b
3 changed files with 8 additions and 8 deletions

View File

@@ -121,8 +121,8 @@
</div> </div>
</div> </div>
<script src="assets/js/main.js" defer></script> <script src="/assets/js/main.js" defer></script>
<script src="assets/js/cookie-consent.js" defer></script> <script src="/assets/js/cookie-consent.js" defer></script>
<?php if (isset($additional_scripts)): ?> <?php if (isset($additional_scripts)): ?>
<?php foreach ($additional_scripts as $script): ?> <?php foreach ($additional_scripts as $script): ?>
<script src="<?php echo $script; ?>" defer></script> <script src="<?php echo $script; ?>" defer></script>

View File

@@ -52,14 +52,14 @@ function includeHeader($title = '', $description = '', $page = '', $scripts = []
$current_page = $page; $current_page = $page;
$additional_scripts = $scripts; $additional_scripts = $scripts;
include 'includes/header.php'; include __DIR__ . '/header.php';
} }
/** /**
* Include footer * Include footer
*/ */
function includeFooter() { function includeFooter() {
include 'includes/footer.php'; include __DIR__ . '/footer.php';
} }
/** /**

View File

@@ -13,7 +13,7 @@
<link rel="preconnect" href="https://cdn.hexahost.de" crossorigin> <link rel="preconnect" href="https://cdn.hexahost.de" crossorigin>
<!-- Performance: Preload kritischer Ressourcen --> <!-- Performance: Preload kritischer Ressourcen -->
<link rel="preload" href="assets/css/style.css" as="style"> <link rel="preload" href="/assets/css/style.css" as="style">
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" as="style"> <link rel="preload" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" as="style">
<title><?php echo isset($page_title) ? htmlspecialchars($page_title) : 'HexaHost.de - Zuverlässiges Hosting aus Niederbayern'; ?></title> <title><?php echo isset($page_title) ? htmlspecialchars($page_title) : 'HexaHost.de - Zuverlässiges Hosting aus Niederbayern'; ?></title>
@@ -32,14 +32,14 @@
<meta property="og:locale" content="de_DE"> <meta property="og:locale" content="de_DE">
<!-- Main Stylesheet --> <!-- Main Stylesheet -->
<link rel="stylesheet" href="assets/css/style.css"> <link rel="stylesheet" href="/assets/css/style.css">
<!-- Fonts --> <!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Russo+One&family=Source+Sans+Pro:wght@300;400;600;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Russo+One&family=Source+Sans+Pro:wght@300;400;600;700&display=swap" rel="stylesheet">
<!-- Favicon --> <!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="favicon.svg"> <link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="apple-touch-icon" href="favicon.svg"> <link rel="apple-touch-icon" href="/favicon.svg">
<!-- Canonical URL (falls gesetzt) --> <!-- Canonical URL (falls gesetzt) -->
<?php if (isset($canonical_url)): ?> <?php if (isset($canonical_url)): ?>