use absolute instead of relative paths

This commit is contained in:
emma 2025-01-09 05:28:21 -05:00
parent 38cb176e0e
commit b04d962a7f
4 changed files with 17 additions and 19 deletions

View File

@ -11,7 +11,7 @@
<body> <body>
<?php require_once($_SERVER['DOCUMENT_ROOT'] . '/includes/nav.php'); ?> <?php require_once($_SERVER['DOCUMENT_ROOT'] . '/includes/nav.php'); ?>
<?php require_once($_SERVER['DOCUMENT_ROOT'] . '/includes/header.php'); ?> <?php require_once($_SERVER['DOCUMENT_ROOT'] . '/includes/header.php'); ?>
<main> <main>
<section> <section>
<h1>contact emma</h1> <h1>contact emma</h1>

View File

@ -1,6 +1,6 @@
<header> <header>
<span class="logo"> <span class="logo">
emma's place <img src="../img/site/assets/red_heart_flat.svg" alt="a red heart meant to symbolize love" height="16px" width="16px"> emma's place <img src="/img/site/assets/red_heart_flat.svg" alt="a red heart meant to symbolize love" height="16px" width="16px">
</span> </span>
<span class="motto"> <span class="motto">
a celebration of self-expression through the personal web a celebration of self-expression through the personal web

View File

@ -1,17 +1,17 @@
<nav> <nav>
<h3>life of emma - category pages</h3> <h3>life of emma - category pages</h3>
<ul> <ul>
<li><a href="../life/self.php" target="_blank">category of emma's self</a></li> <li><a href="/life/self.php" target="_blank">category of emma's self</a></li>
<li><a href="../life/interests.php" target="_blank">category of emma's interests</a></li> <li><a href="/life/interests.php" target="_blank">category of emma's interests</a></li>
</ul> </ul>
<h3>site information</h3> <h3>site information</h3>
<ul> <ul>
<li><a href="../index.php">home</a></li> <li><a href="/index.php">home</a></li>
<li><a href="../site/about.php" target="_blank">about</a></li> <li><a href="/site/about.php" target="_blank">about</a></li>
<li><a href="../site/why.php" target="_blank">why</a></li> <li><a href="/site/why.php" target="_blank">why</a></li>
<li><a href="../site/who.php" target="_blank">who</a></li> <li><a href="/site/who.php" target="_blank">who</a></li>
<li><a href="../site/other.php" target="_blank">other emma things</a></li> <li><a href="/site/other.php" target="_blank">other emma things</a></li>
<li><a href="../guestbook/index.php" target="_blank">contact</a></li> <li><a href="/guestbook/index.php" target="_blank">contact</a></li>
<li><a href="../site/changelog.php" target="_blank">changelog</a></li> <li><a href="/site/changelog.php" target="_blank">changelog</a></li>
</ul> </ul>
</nav> </nav>

View File

@ -4,16 +4,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8"> <meta charset="utf-8">
<title>musically emma</title> <title>musically emma</title>
<link rel="icon" type="image/x-icon" href="../img/site/assets/favicon.ico"> <link rel="icon" type="image/x-icon" href="../../img/site/assets/favicon.ico">
<link rel="stylesheet" href="../style/style.css"> <link rel="stylesheet" href="../../style/style.css"">
</head> </head>
<body> <body>
<?php include "../includes/header.php" ?> <?php require_once($_SERVER['DOCUMENT_ROOT'] . '/includes/nav.php'); ?>
<?php include "../includes/nav.php" ?> <?php require_once($_SERVER['DOCUMENT_ROOT'] . '/includes/header.php'); ?>
<main> <main>
<section> <section>
<h1>musically emma</h1> <h1>musically emma</h1>
<p> <p>
@ -46,6 +44,6 @@
</p> </p>
</section> </section>
</main> </main>
<?php include "../includes/footer.php" ?> <?php require_once($_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'); ?>
</body> </body>
</html> </html>