Merge pull request #4 from shaform/fix-urls

fix urls when baseURL is not at root
This commit is contained in:
Alexander Shpak 2018-11-24 13:11:14 +01:00 committed by GitHub
commit f5736e077a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
<title>{{- template "title" . }} | {{ .Site.Title -}}</title>
<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 }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">

View file

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