fix urls when baseURL is not at root

This commit is contained in:
Shaform 2018-11-23 20:20:39 -05:00
parent f07ab7fa31
commit c44467ce23
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
<title>{{- template "title" . }} | {{ .Site.Title -}}</title> <title>{{- template "title" . }} | {{ .Site.Title -}}</title>
<link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet">
<link rel="stylesheet" href="/normalize.min.css"> <link rel="stylesheet" href="{{ "/normalize.min.css" | relURL }}">
{{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} {{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}"> <link rel="stylesheet" href="{{ $styles.RelPermalink }}">

View file

@ -1,4 +1,4 @@
<label for="menu-control"> <label for="menu-control">
<img src="{{- .Site.BaseURL -}}/svg/menu.svg" /> <img src="{{ "svg/menu.svg" | absURL }}" />
</label> </label>
<strong>{{- template "title" . }}</strong> <strong>{{- template "title" . }}</strong>