Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/halogenica/beautifulhugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Toth <bri.toth@gmail.com>2021-01-21 10:11:55 +0300
committerBrian Toth <bri.toth@gmail.com>2021-01-22 04:56:29 +0300
commit812cb970062d75a4f31dcbae347de398d694571c (patch)
tree666dc42b6b797ebb8d4dca740840e4c4d7377401
parent99ca240e9977196207da2e09c3804d3e98c14e57 (diff)
Don't render header if title is empty
-rw-r--r--layouts/partials/header.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 2182534..b6c4c4d 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -53,6 +53,7 @@
<span class="img-desc" style="display: inline;"></span>
</div>
{{end}}
+ {{ if $title }}
<div class="intro-header no-img">
<div class="container">
<div class="row">
@@ -81,6 +82,7 @@
</div>
</div>
</div>
+ {{ end }}
</header>
{{ else }}
<div class="intro-header"></div>