fix emit filepaths, tag emit being overriden by content
This commit is contained in:
		@@ -24,7 +24,7 @@ export const Assets: QuartzEmitterPlugin = () => {
 | 
			
		||||
        const dir = path.dirname(dest) as FilePath
 | 
			
		||||
        await fs.promises.mkdir(dir, { recursive: true }) // ensure dir exists
 | 
			
		||||
        await fs.promises.copyFile(src, dest)
 | 
			
		||||
        res.push(fp)
 | 
			
		||||
        res.push(dest)
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      return res
 | 
			
		||||
 
 | 
			
		||||
@@ -12,6 +12,6 @@ export const Static: QuartzEmitterPlugin = () => ({
 | 
			
		||||
    const staticPath = joinSegments(QUARTZ, "static")
 | 
			
		||||
    const fps = await glob("**", staticPath, cfg.configuration.ignorePatterns)
 | 
			
		||||
    await fs.promises.cp(staticPath, joinSegments(argv.output, "static"), { recursive: true })
 | 
			
		||||
    return fps.map((fp) => joinSegments("static", fp)) as FilePath[]
 | 
			
		||||
    return fps.map((fp) => joinSegments(argv.output, "static", fp)) as FilePath[]
 | 
			
		||||
  },
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
@@ -49,7 +49,7 @@ export const TagPage: QuartzEmitterPlugin<FullPageLayout> = (userOpts) => {
 | 
			
		||||
          return [
 | 
			
		||||
            tag,
 | 
			
		||||
            defaultProcessedContent({
 | 
			
		||||
              slug: joinSegments("tags", tag, "index") as ServerSlug,
 | 
			
		||||
              slug: joinSegments("tags", tag) as ServerSlug,
 | 
			
		||||
              frontmatter: { title, tags: [] },
 | 
			
		||||
            }),
 | 
			
		||||
          ]
 | 
			
		||||
@@ -59,7 +59,7 @@ export const TagPage: QuartzEmitterPlugin<FullPageLayout> = (userOpts) => {
 | 
			
		||||
      for (const [tree, file] of content) {
 | 
			
		||||
        const slug = file.data.slug!
 | 
			
		||||
        if (slug.startsWith("tags/")) {
 | 
			
		||||
          const tag = joinSegments(slug.slice("tags/".length), "index")
 | 
			
		||||
          const tag = slug.slice("tags/".length)
 | 
			
		||||
          if (tags.has(tag)) {
 | 
			
		||||
            tagDescriptions[tag] = [tree, file]
 | 
			
		||||
          }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user