support relative URLs for brand logos

soper-book
Paul Twohey 2019-09-01 19:02:45 -07:00 committed by Alex Shpak
parent 6004c7edc3
commit d94b4196ba
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<h2 class="book-brand">
<a href="{{ .Site.BaseURL }}">
{{- with .Site.Params.BookLogo -}}
<img src="{{ . }}" alt="Logo" />
<img src="{{ . | relURL }}" alt="Logo" />
<span>
{{- end -}}
{{ .Site.Title }}