diff --git a/themes/starter/components/Footer.js b/themes/starter/components/Footer.js index 9e212ddf..ab145c0b 100644 --- a/themes/starter/components/Footer.js +++ b/themes/starter/components/Footer.js @@ -5,8 +5,11 @@ import { SVGFooterCircleBG } from './svg/SVGFooterCircleBG' /* eslint-disable @next/next/no-img-element */ export const Footer = props => { - const latestPosts = props?.latestPosts ? props?.latestPosts.slice(0, 2) : [] - const STARTER_FOOTER_LINK_GROUP = siteConfig('STARTER_FOOTER_LINK_GROUP') + const footerPostCount = siteConfig('STARTER_FOOTER_POST_COUNT', 2) + const latestPosts = props?.latestPosts + ? props?.latestPosts.slice(0, footerPostCount) + : [] + const STARTER_FOOTER_LINK_GROUP = siteConfig('STARTER_FOOTER_LINK_GROUP', []) return ( <> {/* */} diff --git a/themes/starter/components/Team.js b/themes/starter/components/Team.js index 69eda8a6..facc53fd 100644 --- a/themes/starter/components/Team.js +++ b/themes/starter/components/Team.js @@ -3,7 +3,7 @@ import { siteConfig } from '@/lib/config' import { SVGAvatarBG } from './svg/SVGAvatarBG' export const Team = () => { - const STARTER_TEAM_ITEMS = siteConfig('STARTER_TEAM_ITEMS') + const STARTER_TEAM_ITEMS = siteConfig('STARTER_TEAM_ITEMS', []) return ( <> {/* */}