mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-24 13:10:18 +01:00
Added 'header_visible' parameter to allow switching off the header.
This commit is contained in:
parent
702b68c5dd
commit
4721b523ca
@ -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"
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user