import Card from './Card' import CategoryGroup from './CategoryGroup' import LatestPostsGroup from './LatestPostsGroup' import TagGroups from './TagGroups' import Catalog from './Catalog' import { InfoCard } from './InfoCard' import { AnalyticsCard } from './AnalyticsCard' import CONFIG_HEXO from '../config_hexo' import BLOG from '@/blog.config' import dynamic from 'next/dynamic' const HexoRecentComments = dynamic(() => import('./HexoRecentComments')) /** * Hexo主题右侧栏 * @param {*} props * @returns */ export default function SideRight(props) { const { post, currentCategory, categories, latestPosts, tags, currentTag, showCategory, showTag, slot } = props return (
{CONFIG_HEXO.WIDGET_ANALYTICS && } {showCategory && (
分类
)} {showTag && ( )} {CONFIG_HEXO.WIDGET_LATEST_POSTS && latestPosts && latestPosts.length > 0 && } {BLOG.COMMENT_WALINE_SERVER_URL && BLOG.COMMENT_WALINE_RECENT && }
{post && post.toc && post.toc.length > 1 && } {slot}
) }