--- import { latestComments } from '@/helpers/db/query'; import options from '@/options'; const comments = await latestComments(); --- { options.settings.sidebar.comment > 0 && (
{comments.map((comment) => (-
{comment.authorLink === '' ? (
comment.author
) : (
{comment.author}
)}
{'发表在《'}
{comment.title}
{'》'}
))}