summaryrefslogtreecommitdiff
path: root/srv/src/http/tpl
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-20 13:37:43 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-20 13:37:43 -0600
commit16cfbd19157df76e7296dddb287412f1099feb33 (patch)
treee4bbf892066cceeaeeaee4c25e5365152412a1c3 /srv/src/http/tpl
parent3cdee89c961ae9c836234f5aec87174a04a800a8 (diff)
Move static assets to within srv
Diffstat (limited to 'srv/src/http/tpl')
-rw-r--r--srv/src/http/tpl/base.html12
-rw-r--r--srv/src/http/tpl/follow.html4
2 files changed, 8 insertions, 8 deletions
diff --git a/srv/src/http/tpl/base.html b/srv/src/http/tpl/base.html
index 6031919..e209034 100644
--- a/srv/src/http/tpl/base.html
+++ b/srv/src/http/tpl/base.html
@@ -3,11 +3,11 @@
<head>
<meta charset="utf-8">
- <link rel="stylesheet" href="/assets/normalize.css">
- <link rel="stylesheet" href="/assets/skeleton.css">
- <link rel="stylesheet" href="/assets/friendly.css">
- <link rel="stylesheet" href="/assets/main.css">
- <link rel="stylesheet" href="/assets/fontawesome/css/all.css">
+ <link rel="stylesheet" href="{{ StaticURL "normalize.css" }}">
+ <link rel="stylesheet" href="{{ StaticURL "skeleton.css" }}">
+ <link rel="stylesheet" href="{{ StaticURL "friendly.css" }}">
+ <link rel="stylesheet" href="{{ StaticURL "main.css" }}">
+ <link rel="stylesheet" href="{{ StaticURL "fontawesome/css/all.css" }}">
</head>
<body>
@@ -54,7 +54,7 @@
<footer>
<p class="license light">
Unless otherwised specified, all works are licensed under the
- <a href="/assets/wtfpl.txt">WTFPL</a>.
+ <a href="{{ StaticURL "wtfpl.txt" }}">WTFPL</a>.
</p>
</footer>
diff --git a/srv/src/http/tpl/follow.html b/srv/src/http/tpl/follow.html
index 8cf9dc6..48b7541 100644
--- a/srv/src/http/tpl/follow.html
+++ b/srv/src/http/tpl/follow.html
@@ -1,6 +1,6 @@
{{ define "body" }}
-<script async type="module" src="/assets/api.js"></script>
+<script async type="module" src="{{ StaticURL "api.js" }}"></script>
<p>
Here's your options for receiving updates about new blog posts:
@@ -67,7 +67,7 @@ const emailStatus = document.getElementById("emailStatus");
emailSubscribe.onclick = async () => {
- const api = await import("/assets/api.js");
+ const api = await import("{{ StaticURL "api.js" }}");
emailSubscribe.disabled = true;
emailSubscribe.className = "";