mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-03 22:49:47 +00:00 
			
		
		
		
	fix: allow partial when specifiying layout for emitter plugins
This commit is contained in:
		@@ -19,7 +19,7 @@ import { defaultListPageLayout, sharedPageComponents } from "../../../quartz.lay
 | 
			
		||||
import { FolderContent } from "../../components"
 | 
			
		||||
import { write } from "./helpers"
 | 
			
		||||
 | 
			
		||||
export const FolderPage: QuartzEmitterPlugin<FullPageLayout> = (userOpts) => {
 | 
			
		||||
export const FolderPage: QuartzEmitterPlugin<Partial<FullPageLayout>> = (userOpts) => {
 | 
			
		||||
  const opts: FullPageLayout = {
 | 
			
		||||
    ...sharedPageComponents,
 | 
			
		||||
    ...defaultListPageLayout,
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,7 @@ import { defaultListPageLayout, sharedPageComponents } from "../../../quartz.lay
 | 
			
		||||
import { TagContent } from "../../components"
 | 
			
		||||
import { write } from "./helpers"
 | 
			
		||||
 | 
			
		||||
export const TagPage: QuartzEmitterPlugin<FullPageLayout> = (userOpts) => {
 | 
			
		||||
export const TagPage: QuartzEmitterPlugin<Partial<FullPageLayout>> = (userOpts) => {
 | 
			
		||||
  const opts: FullPageLayout = {
 | 
			
		||||
    ...sharedPageComponents,
 | 
			
		||||
    ...defaultListPageLayout,
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@ import { PluggableList } from "unified"
 | 
			
		||||
import { StaticResources } from "../util/resources"
 | 
			
		||||
import { ProcessedContent } from "./vfile"
 | 
			
		||||
import { QuartzComponent } from "../components/types"
 | 
			
		||||
import { FilePath, FullSlug } from "../util/path"
 | 
			
		||||
import { FilePath } from "../util/path"
 | 
			
		||||
import { BuildCtx } from "../util/ctx"
 | 
			
		||||
 | 
			
		||||
export interface PluginTypes {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user