Skip to content

Commit 743664a

Browse files
dotnetCarpenterdscho
authored andcommitted
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 3d27312 commit 743664a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ <h1 data-pagefind-meta="title">About{{ if (isset .Params "subtitle") }} - {{ .Pa
181181
{{ end }}
182182
</div>
183183
</div>
184-
{{ partialCached "footer.html" . }}
184+
{{ partialCached "footer.html" . .Params "section" }}
185185
</div>
186186
{{ end }}
187187

0 commit comments

Comments
 (0)