feat(layout): add afterBody
This commit is contained in:
		@@ -260,11 +260,11 @@ export const ContentPage: QuartzEmitterPlugin = () => {
 | 
			
		||||
    ...defaultContentPageLayout,
 | 
			
		||||
    pageBody: Content(),
 | 
			
		||||
  }
 | 
			
		||||
  const { head, header, beforeBody, pageBody, left, right, footer } = layout
 | 
			
		||||
  const { head, header, beforeBody, pageBody, afterBody, left, right, footer } = layout
 | 
			
		||||
  return {
 | 
			
		||||
    name: "ContentPage",
 | 
			
		||||
    getQuartzComponents() {
 | 
			
		||||
      return [head, ...header, ...beforeBody, pageBody, ...left, ...right, footer]
 | 
			
		||||
      return [head, ...header, ...beforeBody, pageBody, ...afterBody, ...left, ...right, footer]
 | 
			
		||||
    },
 | 
			
		||||
    async emit(ctx, content, resources, emit): Promise<FilePath[]> {
 | 
			
		||||
      const cfg = ctx.cfg.configuration
 | 
			
		||||
 
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 65 KiB  | 
@@ -12,6 +12,7 @@ export interface FullPageLayout {
 | 
			
		||||
  header: QuartzComponent[] // laid out horizontally
 | 
			
		||||
  beforeBody: QuartzComponent[] // laid out vertically
 | 
			
		||||
  pageBody: QuartzComponent // single component
 | 
			
		||||
  afterBody: QuartzComponent[] // laid out vertically
 | 
			
		||||
  left: QuartzComponent[] // vertical on desktop, horizontal on mobile
 | 
			
		||||
  right: QuartzComponent[] // vertical on desktop, horizontal on mobile
 | 
			
		||||
  footer: QuartzComponent // single component
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user