diff options
author | Paul Twohey <twohey@users.noreply.github.com> | 2019-09-01 11:05:34 -0700 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-09-05 22:22:14 +0200 |
commit | 6004c7edc3e43e9079cab50b39a2dd395294a22a (patch) | |
tree | a844ae70376b86bd8ae55fec5fc4f66c8e517bec /layouts | |
parent | 7d0ee68c3b2b32178b921d1453924e66100d4ec1 (diff) |
Optional brand logo in the menu controlled by .Site.Params.BookLogo
- documentation in README.md and exampleSite/config.{toml,yaml}
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/docs/brand.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/layouts/partials/docs/brand.html b/layouts/partials/docs/brand.html index 7d7b721..9a74dc0 100644 --- a/layouts/partials/docs/brand.html +++ b/layouts/partials/docs/brand.html @@ -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> |