diff --git a/README.md b/README.md
index 0bb53b5f..c61e396d 100755
--- a/README.md
+++ b/README.md
@@ -48,6 +48,7 @@ Read this post For More Details => [hugo-PaperMod - Installation](https://aditya
- Light/Dark theme (automatic theme switch a/c to browser theme and theme-switch button).
- SEO Friendly.
- Muliple Author support.
+- Search Page
- No webpack, nodejs and other depedencies required to edit the theme :)
Read this post For More Details => [hugo-PaperMod - Features](https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-features/)
diff --git a/assets/js/fastsearch.js b/assets/js/fastsearch.js
index 3261c155..357867b2 100644
--- a/assets/js/fastsearch.js
+++ b/assets/js/fastsearch.js
@@ -49,6 +49,8 @@ document.getElementById("searchInput").onkeyup = function (e) {
}
document.getElementById("searchResults").innerHTML = resultSet;
+ } else {
+ document.getElementById("searchResults").innerHTML = '';
}
}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 5cd64a9f..e6e894af 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -9,14 +9,12 @@
·
Theme PaperMod
-
-
-
+
{{- partial "extend_footer.html" . -}}
-{{ if in site.Params.mainSections .Type }}
+{{ if (and (in site.Params.mainSections .Type) (ne .Layout `archives`) (ne .Layout `search`)) }}
{{- if not .Site.Params.assets.disableFingerprinting }}
{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }}
{{- end}}
+{{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify -}}
{{- if not .Site.Params.assets.disableFingerprinting }}
-{{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify | fingerprint -}}
+{{- $stylesheet := $stylesheet | fingerprint -}}
{{- else}}
-{{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify -}}
{{- end}}