diff --git a/src/helpers/global-nav.js b/src/helpers/global-nav.js index 6438dd14..8d5d1b6d 100644 --- a/src/helpers/global-nav.js +++ b/src/helpers/global-nav.js @@ -30,7 +30,7 @@ module.exports = ({ }, }, }) => { - let globalNav = site.keys.globalNav + let globalNav = site?.keys?.globalNav if (!globalNav) return [] if (globalNav._compiled) return globalNav