1
Fork 0

Use relative URL where possible

This commit is contained in:
Jake Howard 2018-02-14 21:40:33 +00:00
parent b6de0d723e
commit 7a5b3b55d0
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 5 additions and 5 deletions

View file

@ -7,8 +7,8 @@
<link rel="alternate" type="application/rss+xml" href="{{ .Site.RSSLink }}" /> <link rel="alternate" type="application/rss+xml" href="{{ .Site.RSSLink }}" />
<meta name="superfish" content="nofish" /> <meta name="superfish" content="nofish" />
<meta name="application-name" content="{{ .Site.Title }}" /> <meta name="application-name" content="{{ .Site.Title }}" />
<link rel="icon" type="image/png" href='{{ absURL "/img/logo-transparent.png" }}'/> <link rel="icon" type="image/png" href='{{ relURL "/img/logo-transparent.png" }}'/>
<link rel="stylesheet" href='{{ absURL "/css/style.css" }}' /> <link rel="stylesheet" href='{{ relURL "/css/style.css" }}' />
<title>{{ partial "title-item.html" (dict "page" . "current" .)}}{{ .Site.Title }}</title> <title>{{ partial "title-item.html" (dict "page" . "current" .)}}{{ .Site.Title }}</title>
@ -21,7 +21,7 @@
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src='{{ absURL "/js/app.js" }}'></script> <script src='{{ relURL "/js/app.js" }}'></script>
</body> </body>
</html> </html>

View file

@ -3,7 +3,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<p> <p>
&copy; {{ now.Year }} <a href='{{ absURL "" }}'>{{ .Site.Title }}</a>. &copy; {{ now.Year }} <a href='{{ relURL "" }}'>{{ .Site.Title }}</a>.
</p> </p>
<p></p> <p></p>
</div> </div>

View file

@ -1,5 +1,5 @@
<nav class="navbar navbar-expand-sm navbar-dark bg-black fixed-top"> <nav class="navbar navbar-expand-sm navbar-dark bg-black fixed-top">
<a class="navbar-brand" href='{{ absURL "" }}'><code>/home/{{ lower .Site.Title }}</code></a> <a class="navbar-brand" href='{{ relURL "" }}'><code>/home/{{ lower .Site.Title }}</code></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>