From befad9a1c4ac2cc3b565e8897bebd07e898a18f7 Mon Sep 17 00:00:00 2001 From: bytedream Date: Mon, 31 Jan 2022 09:34:43 +0100 Subject: [PATCH] Added base tag for subpath support --- html/article.gohtml | 2 ++ html/{landingpage.html => landingpage.gohtml} | 4 +++- js/api.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) rename html/{landingpage.html => landingpage.gohtml} (98%) diff --git a/html/article.gohtml b/html/article.gohtml index 469fe85..ef77531 100644 --- a/html/article.gohtml +++ b/html/article.gohtml @@ -4,6 +4,8 @@ {{.Title}} + + diff --git a/html/landingpage.html b/html/landingpage.gohtml similarity index 98% rename from html/landingpage.html rename to html/landingpage.gohtml index 469dc01..184d2ac 100644 --- a/html/landingpage.html +++ b/html/landingpage.gohtml @@ -4,6 +4,8 @@ THE ADVERSARY + + @@ -98,7 +100,7 @@ diff --git a/js/api.ts b/js/api.ts index e6beb00..e4db1b7 100644 --- a/js/api.ts +++ b/js/api.ts @@ -1,4 +1,4 @@ -const prefix = "" +const prefix = document.getElementsByTagName("base")[0].href; async function unknownResponse(resp: Response): Promise {