mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 15:10:26 +00:00
Merge remote-tracking branch 'origin/main' into feat/notion-config
This commit is contained in:
@@ -253,7 +253,7 @@ function TopGroup(props) {
|
|||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<TodayCard cRef={todayCardRef} />
|
<TodayCard cRef={todayCardRef} siteInfo={siteInfo}/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -301,7 +301,7 @@ function getTopPosts({ latestPosts, allNavPages }) {
|
|||||||
* 英雄区右侧,今日卡牌
|
* 英雄区右侧,今日卡牌
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function TodayCard({ cRef }) {
|
function TodayCard({ cRef, siteInfo }) {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
// 卡牌是否盖住下层
|
// 卡牌是否盖住下层
|
||||||
const [isCoverUp, setIsCoverUp] = useState(true)
|
const [isCoverUp, setIsCoverUp] = useState(true)
|
||||||
@@ -378,8 +378,7 @@ function TodayCard({ cRef }) {
|
|||||||
isCoverUp ? '' : ' pointer-events-none'
|
isCoverUp ? '' : ' pointer-events-none'
|
||||||
} cursor-pointer today-card-cover absolute w-full h-full top-0`}
|
} cursor-pointer today-card-cover absolute w-full h-full top-0`}
|
||||||
style={{
|
style={{
|
||||||
background:
|
background: `url('${siteInfo?.pageCover}') no-repeat center /cover`
|
||||||
"url('https://bu.dusays.com/2023/03/12/640dcd3a1b146.png') no-repeat center /cover"
|
|
||||||
}}
|
}}
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ const CONFIG = {
|
|||||||
// 英雄区右侧推荐文章标签, 例如 [推荐] , 最多六篇文章; 若留空白'',则推荐最近更新文章
|
// 英雄区右侧推荐文章标签, 例如 [推荐] , 最多六篇文章; 若留空白'',则推荐最近更新文章
|
||||||
HERO_RECOMMEND_POST_TAG: '推荐',
|
HERO_RECOMMEND_POST_TAG: '推荐',
|
||||||
HERO_RECOMMEND_POST_SORT_BY_UPDATE_TIME: false, // 推荐文章排序,为`true`时将强制按最后修改时间倒序
|
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: [
|
INFOCARD_GREETINGS: [
|
||||||
|
|||||||
Reference in New Issue
Block a user