diff --git a/themes/Fukasawa/index.js b/themes/Fukasawa/index.js index aabed077..e9e4db72 100644 --- a/themes/Fukasawa/index.js +++ b/themes/Fukasawa/index.js @@ -1,3 +1,5 @@ +import CONFIG_FUKA from './config_fuka' +export { CONFIG_FUKA as THEME_CONFIG } export { LayoutIndex } from './LayoutIndex' export { LayoutSearch } from './LayoutSearch' export { LayoutArchive } from './LayoutArchive' diff --git a/themes/Hexo/LayoutSlug.js b/themes/Hexo/LayoutSlug.js index 5800b844..b03095b9 100644 --- a/themes/Hexo/LayoutSlug.js +++ b/themes/Hexo/LayoutSlug.js @@ -39,12 +39,13 @@ export const LayoutSlug = props => { post.toc = getPageTableOfContents(post, post.blockMap) } + const headerImage = post?.page_cover ? `url("${post.page_cover}")` : `url("/${CONFIG_NEXT.HOME_BANNER_IMAGE}")` const headerSlot = (