最近评论

This commit is contained in:
tlyong1992
2022-05-31 13:42:02 +08:00
parent d902a22aa3
commit f16c6c01d3
7 changed files with 102 additions and 3 deletions

View File

@@ -6,6 +6,14 @@ import Catalog from './Catalog'
import { InfoCard } from './InfoCard'
import { AnalyticsCard } from './AnalyticsCard'
import CONFIG_HEXO from '../config_hexo'
import WalineRecentComment from '@/components/WalineRecentsComments'
import BLOG from '@/blog.config'
/**
* Hexo主题右侧栏
* @param {*} props
* @returns
*/
export default function SideRight(props) {
const {
post, currentCategory, categories, latestPosts, tags,
@@ -37,8 +45,10 @@ export default function SideRight(props) {
<LatestPostsGroup {...props} />
</Card>}
{BLOG.COMMENT_WALINE_SERVER_URL && <WalineRecentComment/>}
<div className='sticky top-20'>
{post && post.toc && <Card>
{post && post.toc && post.toc.length > 1 && <Card>
<Catalog toc={post.toc} />
</Card>}
{slot}

View File

@@ -8,6 +8,7 @@ import formatDate from '@/lib/formatDate'
import { useGlobal } from '@/lib/global'
import BLOG from '@/blog.config'
import NotionPage from '@/components/NotionPage'
import React from 'react'
export const ArticleDetail = props => {
const { post, prev, next, siteInfo } = props