Use absURL
to reduce concat hack on BaseURL
This commit is contained in:
parent
fc45021ee6
commit
09b831d52d
3 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<p>
|
||||
© {{ now.Year }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>.
|
||||
© {{ now.Year }} <a href='{{ absURL "" }}'>{{ .Site.Title }}</a>.
|
||||
</p>
|
||||
<p></p>
|
||||
</div>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue