Refactor noisy vars into exps

This commit is contained in:
Will Faught
2025-02-14 16:39:49 -08:00
parent e36593c2af
commit 91ffd0f5e3
3 changed files with 3 additions and 9 deletions

View File

@@ -13,8 +13,6 @@
{{ $title := site.Title | markdownify | and ($page.Param "paige.site.disable_title" | not) }}
{{ $underline := false }}
{{ $header := or $breadcrumbs $description $first $last $menu $title }}
{{ if eq $basePath "/" }}
{{ $basePath = "" }}
{{ end }}
@@ -35,7 +33,7 @@
{{ $links = true }}
{{ end }}
{{ if $header }}
{{ if or $breadcrumbs $description $first $last $menu $title }}
<header id="paige-site-header">
{{ partial "paige/func-include.html" (dict "name" "site-header-first%s.html" "page" $page) }}