feat(layout): add afterBody
This commit is contained in:
		@@ -59,14 +59,25 @@ export const ContentPage: QuartzEmitterPlugin<Partial<FullPageLayout>> = (userOp
 | 
			
		||||
    ...userOpts,
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const { head: Head, header, beforeBody, pageBody, left, right, footer: Footer } = opts
 | 
			
		||||
  const { head: Head, header, beforeBody, pageBody, afterBody, left, right, footer: Footer } = opts
 | 
			
		||||
  const Header = HeaderConstructor()
 | 
			
		||||
  const Body = BodyConstructor()
 | 
			
		||||
 | 
			
		||||
  return {
 | 
			
		||||
    name: "ContentPage",
 | 
			
		||||
    getQuartzComponents() {
 | 
			
		||||
      return [Head, Header, Body, ...header, ...beforeBody, pageBody, ...left, ...right, Footer]
 | 
			
		||||
      return [
 | 
			
		||||
        Head,
 | 
			
		||||
        Header,
 | 
			
		||||
        Body,
 | 
			
		||||
        ...header,
 | 
			
		||||
        ...beforeBody,
 | 
			
		||||
        pageBody,
 | 
			
		||||
        ...afterBody,
 | 
			
		||||
        ...left,
 | 
			
		||||
        ...right,
 | 
			
		||||
        Footer,
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    async getDependencyGraph(ctx, content, _resources) {
 | 
			
		||||
      const graph = new DepGraph<FilePath>()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user