summaryrefslogtreecommitdiff
path: root/src/http/tpl/base.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2024-05-18 18:29:19 +0200
committerBrian Picciano <mediocregopher@gmail.com>2024-05-18 18:29:19 +0200
commit0665d0c65974533fbd313f4e0b062b5103057aeb (patch)
tree5287795eed9767bd959a5139b77ef78b4024216d /src/http/tpl/base.html
parentffa26298c95451639a6e01db6692d02d50b3d518 (diff)
Replace all URL rendering within templates by a URLConstructor
Diffstat (limited to 'src/http/tpl/base.html')
-rw-r--r--src/http/tpl/base.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/http/tpl/base.html b/src/http/tpl/base.html
index 47644f7..f0419d5 100644
--- a/src/http/tpl/base.html
+++ b/src/http/tpl/base.html
@@ -3,12 +3,12 @@
<head>
<title>{{ .Title }}</title>
- <link rel="stylesheet" type="text/css" href="{{ StaticURL "new.css" }}" />
- <link rel="stylesheet" type="text/css" href="{{ StaticURL "mediocre.css" }}" />
- <link rel="apple-touch-icon" sizes="180x180" href="{{ StaticURL "favicon/apple-touch-icon.png" }}">
- <link rel="icon" type="image/png" sizes="32x32" href="{{ StaticURL "favicon/favicon-32x32.png" }}">
- <link rel="icon" type="image/png" sizes="16x16" href="{{ StaticURL "favicon/favicon-16x16.png" }}">
- <link rel="manifest" href="{{ StaticURL "favicon/site.webmanifest" }}">
+ <link rel="stylesheet" type="text/css" href="{{ .RootURL.Static "new.css" }}" />
+ <link rel="stylesheet" type="text/css" href="{{ .RootURL.Static "mediocre.css" }}" />
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ .RootURL.Static "favicon/apple-touch-icon.png" }}">
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ .RootURL.Static "favicon/favicon-32x32.png" }}">
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ .RootURL.Static "favicon/favicon-16x16.png" }}">
+ <link rel="manifest" href="{{ .RootURL.Static "favicon/site.webmanifest" }}">
</head>
<body>
@@ -105,17 +105,17 @@
<strong>mediocregopher</strong>'s lil web corner
<br/>
<br/>
- <a href="{{ BlogURL "/" }}">Home</a>
+ <a href="{{ .RootURL }}">Home</a>
&nbsp;//&nbsp;
- <a href="{{ BlogURL "/posts" }}">Posts</a>
+ <a href="{{ .RootURL.Posts }}">Posts</a>
&nbsp;/&nbsp;
- <a href="{{ BlogURL "follow" }}">Follow</a>
+ <a href="{{ .RootURL.Path "follow" }}">Follow</a>
&nbsp;/&nbsp;
- <a href="{{ BlogURL "feed.xml" }}">RSS</a>
+ <a href="{{ .RootURL.Path "feed.xml" }}">RSS</a>
&nbsp;//&nbsp;
<a href="https://dev.mediocregopher.com/mediocre-blog.git">Source</a>
&nbsp;/&nbsp;
- <a href="{{ StaticURL "wtfpl.txt" }}">License</a>
+ <a href="{{ .RootURL.Static "wtfpl.txt" }}">License</a>
</header>
{{ template "body" . }}