Added base tag for subpath support

This commit is contained in:
2022-01-31 09:34:43 +01:00
parent 77e7c15e0e
commit befad9a1c4
3 changed files with 6 additions and 2 deletions

View File

@@ -4,6 +4,8 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>{{.Title}}</title> <title>{{.Title}}</title>
<base href="{{.BasePath}}">
<link rel="stylesheet" href="../sass/index.css"> <link rel="stylesheet" href="../sass/index.css">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">

View File

@@ -4,6 +4,8 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>THE ADVERSARY</title> <title>THE ADVERSARY</title>
<base href="{{.BasePath}}">
<link rel="stylesheet" href="../sass/index.css"> <link rel="stylesheet" href="../sass/index.css">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
@@ -98,7 +100,7 @@
<footer> <footer>
<div class="foot"> <div class="foot">
<a>ABOUT</a> <a>ABOUT</a>
<a>IMPRESSUM</a> <a>IMPRINT</a>
<a>CONTACT</a> <a>CONTACT</a>
</div> </div>
</footer> </footer>

View File

@@ -1,4 +1,4 @@
const prefix = "" const prefix = document.getElementsByTagName("base")[0].href;
async function unknownResponse(resp: Response): Promise<Error> { async function unknownResponse(resp: Response): Promise<Error> {