Use absolute refs transformed to relative
Write all links as absolute refs from the virtual root of the website's path namespace and then transform these into relative links with the resolveRefs utility function.
This commit is contained in:
parent
17f8693eae
commit
d003ea01d0
5 changed files with 37 additions and 20 deletions
|
@ -9,12 +9,12 @@ export function BasePage(props: BaseProps) {
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{props.title}</title>
|
||||
<link rel="stylesheet" href="./style.css" />
|
||||
<link rel="stylesheet" href="/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<nav>
|
||||
<a href="./index.html">Home</a> <a href="./updates.html">Updates</a> <a href="./projects.html">Projects</a>
|
||||
<a href="/index.html">Home</a> <a href="/updates.html">Updates</a> <a href="/projects.html">Projects</a>
|
||||
</nav>
|
||||
</header>
|
||||
{props.children}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue