1
Fork 0

Use absURL to reduce concat hack on BaseURL

This commit is contained in:
Jake Howard 2018-01-06 16:27:25 +00:00
parent fc45021ee6
commit 09b831d52d
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 }}" />
<meta name="superfish" content="nofish" />
<meta name="application-name" content="{{ .Site.Title }}" />
<link rel="icon" type="image/png" href="{{ .Site.BaseURL }}/img/logo-transparent.png" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
<link rel="icon" type="image/png" href='{{ absURL "/img/logo-transparent.png" }}'/>
<link rel="stylesheet" href='{{ absURL "/css/style.css" }}' />
<title>{{ partial "title-item.html" (dict "page" . "current" .)}}{{ .Site.Title }}</title>
@ -21,7 +21,7 @@
{{ 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="{{ .Site.BaseURL }}/js/app.js"></script>
<script src='{{ absURL "/js/app.js" }}'></script>
</body>
</html>

View file

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

View file

@ -1,5 +1,5 @@
<nav class="navbar navbar-expand-sm navbar-dark bg-black fixed-top">
<a class="navbar-brand" href="{{ .Site.BaseURL }}"><code>/home/{{ lower .Site.Title }}</code></a>
<a class="navbar-brand" href='{{ absURL "" }}'><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">
<span class="navbar-toggler-icon"></span>
</button>