diff options
| author | Martin Fischer <martin@push-f.com> | 2026-02-15 12:32:13 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-02-15 12:32:37 +0100 |
| commit | 69b0e926b0795d17975025139b4b4afb0801f976 (patch) | |
| tree | 1f8f988ead324ac9c2d3521ea30db2b245c2afbf /layouts/partials | |
| parent | 97399f61d40b0866c7057d577141373e002efac6 (diff) | |
fix: omit header-menu div if Params.menu is empty
The padding of it was visible.
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/header.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7af4224..886c91a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -8,6 +8,7 @@ <a href="{{ site.BaseURL }}">{{ site.Title }}</a> </h1> + {{ if site.Params.menu }} <div class="header-menu"> {{ $currentPage := . }} @@ -24,6 +25,7 @@ {{ end }} {{ end }} </div> + {{ end }} {{ end }} |
