Optional brand logo in the menu controlled by .Site.Params.BookLogo

- documentation in README.md and exampleSite/config.{toml,yaml}
This commit is contained in:
Paul Twohey
2019-09-01 11:05:34 -07:00
committed by Alex Shpak
parent 7d0ee68c3b
commit 6004c7edc3
5 changed files with 32 additions and 2 deletions
+10 -1
View File
@@ -1,3 +1,12 @@
<h2 class="book-brand">
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
<a href="{{ .Site.BaseURL }}">
{{- with .Site.Params.BookLogo -}}
<img src="{{ . }}" alt="Logo" />
<span>
{{- end -}}
{{ .Site.Title }}
{{- with .Site.Params.BookLogo -}}
</span>
{{- end -}}
</a>
</h2>