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:
authorMichael Romero <halogenica@users.noreply.github.com>2022-06-27 01:12:30 +0300
committerGitHub <noreply@github.com>2022-06-27 01:12:30 +0300
commitbf112a8088eeacd2641cbf5c9c5cecc752d0ec60 (patch)
tree5f624b79f0a844fd20ac69eedce4cb07932bd8bf
parent02db626c80886c58ec6b575bdc977077f59cfecf (diff)
parent812cb970062d75a4f31dcbae347de398d694571c (diff)
Merge pull request #372 from miketoth/btoth/dont-render-empty-title
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>