Add search partial to all pages except home page

This commit is contained in:
Ethan Yoo 2022-12-29 10:31:05 -05:00
parent 0fe00bf114
commit fb3dc57f1b
Signed by: ethan
GPG Key ID: 70596474C5D20F85
1 changed files with 1 additions and 2 deletions

View File

@ -26,9 +26,8 @@
{{- with .OutputFormats.Get "RSS" -}}{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}{{ end }}
<style>body{background:#10151a}html{visibility:hidden;opacity:0;}</style>
</head>
<body>
{{- if not .IsHome }}{{ partial "header" . }}{{ end }}
{{- if not .IsHome }}{{ partial "header" . }}{{ partialCached "search.html" . }}{{ end }}
{{- if .IsHome }}{{- block "header" . }}{{ end }}
{{- end }}
{{- block "main" . }}{{ end }}