feat: div that encapsulate PageList component (#750)
* feat: div that encapsulate PageList component
* change class to follow review
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* apply page-listing div to TagContent
---------
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
| | |
| | | <article> |
| | | <p>{content}</p> |
| | | </article> |
| | | <div class="page-listing"> |
| | | {options.showFolderCount && ( |
| | | <p>{pluralize(allPagesInFolder.length, "item")} under this folder.</p> |
| | | )} |
| | |
| | | <PageList {...listProps} /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | ) |
| | | } |
| | | |
| | |
| | | </a> |
| | | </h2> |
| | | {content && <p>{content}</p>} |
| | | <div class="page-listing"> |
| | | <p> |
| | | {pluralize(pages.length, "item")} with this tag.{" "} |
| | | {pages.length > numPages && `Showing first ${numPages}.`} |
| | | </p> |
| | | <PageList limit={numPages} {...listProps} /> |
| | | </div> |
| | | </div> |
| | | ) |
| | | })} |
| | | </div> |
| | |
| | | return ( |
| | | <div class={classes}> |
| | | <article>{content}</article> |
| | | <div class="page-listing"> |
| | | <p>{pluralize(pages.length, "item")} with this tag.</p> |
| | | <div> |
| | | <PageList {...listProps} /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | ) |
| | | } |
| | | } |