feat: isComment -> simpleMode

This commit is contained in:
DIYgod 2024-01-17 01:22:36 +08:00
parent 292e43c7e4
commit b23ebf266f
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ const MarkdownContent = memo(function PageContent({
onScroll,
onMouseEnter,
parsedContent,
isComment,
simpleMode,
page,
site,
withActions,
@ -29,7 +29,7 @@ const MarkdownContent = memo(function PageContent({
onScroll?: (scrollTop: number) => void
onMouseEnter?: () => void
parsedContent?: ReturnType<typeof renderPageContent>
isComment?: boolean
simpleMode?: boolean
page?: ExpandedNote
site?: ExpandedCharacter
withActions?: boolean
@ -39,7 +39,7 @@ const MarkdownContent = memo(function PageContent({
if (parsedContent) {
inParsedContent = parsedContent
} else if (content) {
inParsedContent = renderPageContent(content, false, isComment)
inParsedContent = renderPageContent(content, false, simpleMode)
}
return (

View File

@ -38,7 +38,7 @@ export default async function SiteFooter({
<MarkdownContent
className="[&>.prose]:text-sm"
content={site.metadata.content.footer}
isComment={true}
simpleMode={true}
/>
)}
<div className="text-xs sm:flex justify-between sm:space-x-5 sm:space-y-0 space-y-5 sm:items-center">