Make Logo Optional by providing an empty string

Since not every user has a nice logo at hand I find it useful to have the option to not include a logo. By default cocoa-eh would still show a 'logo' hyperlink. I would at least try to make this theme work without any basefiles given (even thoug the basic cocoa theme is available)
This commit is contained in:
Robin Wenzel
2018-03-02 13:57:02 +01:00
committed by Michael Noronha
parent b03f2d71fe
commit a36d787cf1

View File

@@ -11,7 +11,9 @@
<div class="header header-home column"> <div class="header header-home column">
{{ end }} {{ end }}
<div class="container"> <div class="container">
{{ if ne .Site.Params.logofile "" }}
<a href="{{ .Site.BaseURL }}"><img class="logo" src="{{ .Site.Params.logofile | absURL }}" alt="logo" /></a> <a href="{{ .Site.BaseURL }}"><img class="logo" src="{{ .Site.Params.logofile | absURL }}" alt="logo" /></a>
{{ end }}
<div class="content"> <div class="content">
<a href="{{ .Site.BaseURL }}"><div class="name"><h1>{{ .Site.Title }}</h1></div></a> <a href="{{ .Site.BaseURL }}"><div class="name"><h1>{{ .Site.Title }}</h1></div></a>
<nav> <nav>