diff options
author | Tanner Smith <tannersmithtn95@gmail.com> | 2020-06-04 00:26:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 00:26:29 +0300 |
commit | 91715191544ceb747c78014b8d56c247e73759e4 (patch) | |
tree | a85c552f4da535401594ff7cd93bd2ea9ce28209 /layouts | |
parent | 9752a70c09165da572776c85dc2c1472870af671 (diff) |
Site logo (#284)
* Add the option to use a logo for the top left site title
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/site-navigation.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/site-navigation.html b/layouts/partials/site-navigation.html index fc6f40c..d73c66d 100644 --- a/layouts/partials/site-navigation.html +++ b/layouts/partials/site-navigation.html @@ -1,7 +1,11 @@ <nav class="pv3 ph3 ph4-ns" role="navigation"> <div class="flex-l justify-between items-center center"> <a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib"> - {{ .Site.Title }} + {{ with .Site.Params.site_logo }} + <img src="{{ . }}" class="w100 mw5-ns" alt="{{ $.Site.Title }}" /> + {{ else }} + {{ .Site.Title }} + {{ end }} </a> <div class="flex-l items-center"> {{ partial "i18nlist.html" . }} |