hugo-book-theme/layouts/partials/docs/brand.html
Paul Twohey 6004c7edc3 Optional brand logo in the menu controlled by .Site.Params.BookLogo
- documentation in README.md and exampleSite/config.{toml,yaml}
2019-09-05 22:22:14 +02:00

12 lines
268 B
HTML

<h2 class="book-brand">
<a href="{{ .Site.BaseURL }}">
{{- with .Site.Params.BookLogo -}}
<img src="{{ . }}" alt="Logo" />
<span>
{{- end -}}
{{ .Site.Title }}
{{- with .Site.Params.BookLogo -}}
</span>
{{- end -}}
</a>
</h2>