diff options
author | Lars Kruse <devel@sumpfralle.de> | 2020-09-13 19:22:54 +0300 |
---|---|---|
committer | Lars Kruse <devel@sumpfralle.de> | 2020-09-13 21:33:14 +0300 |
commit | 9bf32e1c746404014bd23cd6521a2a5a2133216e (patch) | |
tree | 13d34ab3ab8ebb818c66da4618a8573ef8b35615 /layouts | |
parent | 94982f7998875e98de9d00482a35dcbe6a5df5eb (diff) |
Add support for optional site logo
The logo will be prepended to the site title in the navigation bar.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/header.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 79224ad..1aa7077 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -2,6 +2,9 @@ <div class="container"> <div> <a class="navbar-brand" href="{{ .Site.BaseURL | relLangURL }}"> + {{ with .Site.Params.site_logo }} + <img src="{{ . }}" height="3rem" /> + {{ end }} {{ .Site.Title }} </a> </div> |