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
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,9 @@ paginate = 5
# Description/subtitle for homepage (can be Markdown)
description = "A simple Hugo theme based on the Bootstrap v4 blog example."
# Show header (default: true)
#header_visible = true
# Format dates with Go's time formatting
date_format = "Mon Jan 02, 2006"

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">