Merge d66c251a8cc03ad3bdc99c6fd0aa8f2a2b9595fe into 32ec711767401c93605b7631f03eee47dea1cada

This commit is contained in:
Antoine Déchappe 2025-02-07 21:11:00 +01:00 committed by GitHub
commit 3da9aa222f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>