Merge remote-tracking branch 'origin/main' into feat/notion-config

This commit is contained in:
tangly1024
2023-10-31 15:31:58 +08:00
2 changed files with 4 additions and 4 deletions

View File

@@ -253,7 +253,7 @@ function TopGroup(props) {
)
})}
</div>
<TodayCard cRef={todayCardRef} />
<TodayCard cRef={todayCardRef} siteInfo={siteInfo}/>
</div>
)
}
@@ -301,7 +301,7 @@ function getTopPosts({ latestPosts, allNavPages }) {
* 英雄区右侧,今日卡牌
* @returns
*/
function TodayCard({ cRef }) {
function TodayCard({ cRef, siteInfo }) {
const router = useRouter()
// 卡牌是否盖住下层
const [isCoverUp, setIsCoverUp] = useState(true)
@@ -378,8 +378,7 @@ function TodayCard({ cRef }) {
isCoverUp ? '' : ' pointer-events-none'
} cursor-pointer today-card-cover absolute w-full h-full top-0`}
style={{
background:
"url('https://bu.dusays.com/2023/03/12/640dcd3a1b146.png') no-repeat center /cover"
background: `url('${siteInfo?.pageCover}') no-repeat center /cover`
}}
></div>
</div>

View File

@@ -25,6 +25,7 @@ const CONFIG = {
// 英雄区右侧推荐文章标签, 例如 [推荐] , 最多六篇文章; 若留空白'',则推荐最近更新文章
HERO_RECOMMEND_POST_TAG: '推荐',
HERO_RECOMMEND_POST_SORT_BY_UPDATE_TIME: false, // 推荐文章排序,为`true`时将强制按最后修改时间倒序
// HERO_RECOMMEND_COVER: 'https://cdn.pixabay.com/photo/2015/10/30/20/13/sunrise-1014712_1280.jpg', // 英雄区右侧图片
// 右侧个人资料卡牌欢迎语,点击可自动切换
INFOCARD_GREETINGS: [