@@ -66,6 +66,7 @@ <h1>Redirecting…</h1>
6666
6767 {{ $style := resources.Get "sass/application.scss" | resources.ExecuteAsTemplate "application.scss" . | css.Sass | resources.Minify | fingerprint }}
6868 < link rel ="stylesheet " href ="{{ $style.RelPermalink }} "{{ if (hasPrefix .Site.BaseURL "https://") }} integrity="{{ $style.Data.Integrity }} "{{ end }} >
69+ < script src ="{{ relURL "js /modernizr.js" }}"> </ script >
6970 <!--[if (gte IE 6)&(lte IE 8)]>
7071 <script src="{{ relURL "js/selectivizr-min.js" }}"></script>
7172 <![endif]-->
@@ -83,7 +84,7 @@ <h1>Redirecting…</h1>
8384 < div id ="content-wrapper ">
8485 < div class ="inner ">
8586 {{ partial "site-root.html" . }}
86- {{ partial "footer.html" . }}
87+ {{ partialCached "footer.html" . }}
8788 </ div > <!-- .inner -->
8889 </ div > <!-- #content-wrapper -->
8990 {{ else if (isset .Params "book") }}
@@ -111,7 +112,7 @@ <h1>{{ .Params.book.section.cs_number }} {{ .Params.book.chapter.title }} - {{ .
111112 {{ end }}
112113 </ div >
113114 </ div >
114- {{ partial "footer.html" . }}
115+ {{ partialCached "footer.html" . }}
115116 </ div >
116117 {{ else if (isset .Params "docname") }}
117118 < div class ="inner ">
@@ -144,7 +145,7 @@ <h3 hidden="true" data-pagefind-weight="{{ $weight }}">{{ $command_name }}</h3>
144145 </ div >
145146 </ div >
146147 </ div >
147- {{ partial "footer.html" . }}
148+ {{ partialCached "footer.html" . }}
148149 </ div >
149150 {{ else }}
150151 < div class ="inner ">
@@ -181,7 +182,8 @@ <h1 data-pagefind-meta="title">About{{ if (isset .Params "subtitle") }} - {{ .Pa
181182 {{ end }}
182183 </ div >
183184 </ div >
184- {{ partial "footer.html" . }}
185+ {{ if eq (.Scratch.Get "section") "search" }}< script src ="{{ relURL "pagefind /pagefind-ui.js" }}"> </ script > {{ end }}
186+ {{ partialCached "footer.html" . }}
185187 </ div >
186188 {{ end }}
187189
0 commit comments