From b7152f743bc90411ffd5a9e59057a79be430751b Mon Sep 17 00:00:00 2001 From: Mara-Li Date: Mon, 29 Jan 2024 07:52:04 +0100 Subject: [PATCH] feat: div that encapsulate PageList component (#750) * feat: div that encapsulate PageList component * change class to follow review Co-authored-by: Jacky Zhao * apply page-listing div to TagContent --------- Co-authored-by: Jacky Zhao --- quartz/components/pages/FolderContent.tsx | 12 +++++++----- quartz/components/pages/TagContent.tsx | 20 ++++++++++++-------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/quartz/components/pages/FolderContent.tsx b/quartz/components/pages/FolderContent.tsx index 436ed91..47fb02f 100644 --- a/quartz/components/pages/FolderContent.tsx +++ b/quartz/components/pages/FolderContent.tsx @@ -50,11 +50,13 @@ export default ((opts?: Partial) => {

{content}

- {options.showFolderCount && ( -

{pluralize(allPagesInFolder.length, "item")} under this folder.

- )} -
- +
+ {options.showFolderCount && ( +

{pluralize(allPagesInFolder.length, "item")} under this folder.

+ )} +
+ +
) diff --git a/quartz/components/pages/TagContent.tsx b/quartz/components/pages/TagContent.tsx index 5050746..ec30c5f 100644 --- a/quartz/components/pages/TagContent.tsx +++ b/quartz/components/pages/TagContent.tsx @@ -62,11 +62,13 @@ function TagContent(props: QuartzComponentProps) { {content &&

{content}

} -

- {pluralize(pages.length, "item")} with this tag.{" "} - {pages.length > numPages && `Showing first ${numPages}.`} -

- +
+

+ {pluralize(pages.length, "item")} with this tag.{" "} + {pages.length > numPages && `Showing first ${numPages}.`} +

+ +
) })} @@ -83,9 +85,11 @@ function TagContent(props: QuartzComponentProps) { return (
{content}
-

{pluralize(pages.length, "item")} with this tag.

-
- +
+

{pluralize(pages.length, "item")} with this tag.

+
+ +
)