diff --git a/_includes/search.html b/_includes/search.html
index 8056800..d9a04e5 100644
--- a/_includes/search.html
+++ b/_includes/search.html
@@ -43,7 +43,7 @@
displayKey: '',
templates: {
suggestion(suggestion) {
- const title = [ suggestion.title ].concat(suggestion.headings).join(' › ');
+ const title = [ suggestion.title ].concat(suggestion.headings || []).join(' › ');
const content = suggestion._highlightResult.content && suggestion._highlightResult.content.value || '';
suggestion._href = 'https://api.qunitjs.com' + formatURL(suggestion);
return `
@@ -60,7 +60,7 @@
displayKey: '',
templates: {
suggestion(suggestion) {
- const title = [ suggestion.title ].concat(suggestion.headings).join(' › ');
+ const title = [ suggestion.title ].concat(suggestion.headings || []).join(' › ');
const content = suggestion._highlightResult.content && suggestion._highlightResult.content.value || '';
suggestion._href = formatURL(suggestion);
return `
diff --git a/_layouts/wrapper.html b/_layouts/wrapper.html
index 836ca57..9017b33 100644
--- a/_layouts/wrapper.html
+++ b/_layouts/wrapper.html
@@ -19,7 +19,7 @@