1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2025-06-21 23:41:09 +02:00

Added 'header_visible' parameter to allow switching off the header.

This commit is contained in:
Cosmin Humeniuc
2018-08-25 18:11:15 +03:00
committed by Alan Orth
parent 702b68c5dd
commit 4721b523ca
2 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,7 @@
{{ end }}
{{ block "header" . }}
{{ if (ne ($.Param "header_visible") false) }}
<header class="blog-header">
<div class="container">
<h1 class="blog-title"><a href="{{ .Site.BaseURL }}" rel="home">{{ .Site.Title | safeHTML }}</a></h1>
@ -54,6 +55,7 @@
</div>
</header>
{{ end }}
{{ end }}
{{ block "body" . }}
<div class="container">