summaryrefslogtreecommitdiff
path: root/src/http/tpl/base.html
diff options
context:
space:
mode:
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" . }}