Merge pull request #4 from shaform/fix-urls
fix urls when baseURL is not at root
This commit is contained in:
commit
f5736e077a
2 changed files with 4 additions and 4 deletions
|
@ -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 }}">
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue