Add site logo option

This commit is contained in:
mountainbug95 2020-06-03 15:13:35 -05:00
parent 29972c2fd7
commit 91547594d8
No known key found for this signature in database
GPG Key ID: 3EEE76B99FDF9A40
2 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,7 @@ enableRobotsTXT = true
[params]
favicon = ""
site_logo = ""
description = "The last theme you'll ever need. Maybe."
facebook = ""
twitter = "https://twitter.com/GoHugoIO"

View File

@ -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">
{{ 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" . }}