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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user