Skip to content

Commit eaeefd7

Browse files
Build: vary cached footer on section
Create a new cached footer for each section set in baseof.html. This makes sure that pagefind/pagefind-ui.js is included if the section is "search".
1 parent c27b274 commit eaeefd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/_default/baseof.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ <h1 data-pagefind-meta="title">About{{ if (isset .Params "subtitle") }} - {{ .Pa
165165
{{ end }}
166166
</div>
167167
</div>
168-
{{ partialCached "footer.html" . }}
168+
{{ partialCached "footer.html" . .Params "section" }}
169169
</div>
170170
{{ end }}
171171

0 commit comments

Comments
 (0)