diff --git a/lib/config.js b/lib/config.js index bdb574dc..19287d8a 100644 --- a/lib/config.js +++ b/lib/config.js @@ -32,6 +32,8 @@ export const siteConfig = (key, defaultVal = null, extendConfig = {}) => { case 'POST_LIST_STYLE': case 'POST_LIST_PREVIEW': case 'POST_URL_PREFIX_MAPPING_CATEGORY': + case 'IS_TAG_COLOR_DISTINGUISHED': + case 'TAG_SORT_BY_COUNT': return convertVal(extendConfig[key] || defaultVal || BLOG[key]) default: } diff --git a/themes/heo/components/Hero.js b/themes/heo/components/Hero.js index 7e999ebe..e8d98023 100644 --- a/themes/heo/components/Hero.js +++ b/themes/heo/components/Hero.js @@ -162,13 +162,20 @@ function TagsGroupBar() { * @returns */ function GroupMenu() { + const url_1 = siteConfig('HEO_HERO_CATEGORY_1', {}, CONFIG)?.url || '' + const title_1 = siteConfig('HEO_HERO_CATEGORY_1', {}, CONFIG)?.title || '' + const url_2 = siteConfig('HEO_HERO_CATEGORY_2', {}, CONFIG)?.url || '' + const title_2 = siteConfig('HEO_HERO_CATEGORY_2', {}, CONFIG)?.title || '' + const url_3 = siteConfig('HEO_HERO_CATEGORY_3', {}, CONFIG)?.url || '' + const title_3 = siteConfig('HEO_HERO_CATEGORY_3', {}, CONFIG)?.title || '' + return (