support relative URLs for brand logos

This commit is contained in:
Paul Twohey 2019-09-01 19:02:45 -07:00 committed by Alex Shpak
parent 6004c7edc3
commit d94b4196ba

View file

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