mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-18 06:24:22 +02:00
Merge d66c251a8cc03ad3bdc99c6fd0aa8f2a2b9595fe into 7be47742a6dc86f22d148ca9d304f7a9eea318cf
This commit is contained in:
commit
1be272dea2
@ -42,6 +42,8 @@ export const PageList: QuartzComponent = ({ cfg, fileData, allFiles, limit, sort
|
||||
{list.map((page) => {
|
||||
const title = page.frontmatter?.title
|
||||
const tags = page.frontmatter?.tags ?? []
|
||||
const isFolder = tags.includes("folder")
|
||||
const href = resolveRelative(fileData.slug!, page.slug!) + (isFolder ? "/" : "")
|
||||
|
||||
return (
|
||||
<li class="section-li">
|
||||
@ -51,7 +53,7 @@ export const PageList: QuartzComponent = ({ cfg, fileData, allFiles, limit, sort
|
||||
</p>
|
||||
<div class="desc">
|
||||
<h3>
|
||||
<a href={resolveRelative(fileData.slug!, page.slug!)} class="internal">
|
||||
<a href={href} class="internal">
|
||||
{title}
|
||||
</a>
|
||||
</h3>
|
||||
|
Loading…
x
Reference in New Issue
Block a user