Add search partial to all pages except home page
This commit is contained in:
parent
0fe00bf114
commit
fb3dc57f1b
|
@ -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 }}
|
{{- 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>
|
<style>body{background:#10151a}html{visibility:hidden;opacity:0;}</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{{- if not .IsHome }}{{ partial "header" . }}{{ end }}
|
{{- if not .IsHome }}{{ partial "header" . }}{{ partialCached "search.html" . }}{{ end }}
|
||||||
{{- if .IsHome }}{{- block "header" . }}{{ end }}
|
{{- if .IsHome }}{{- block "header" . }}{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- block "main" . }}{{ end }}
|
{{- block "main" . }}{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue