| | |
| | | header: QuartzComponent[] |
| | | beforeBody: QuartzComponent[] |
| | | pageBody: QuartzComponent |
| | | afterBody: QuartzComponent[] |
| | | left: QuartzComponent[] |
| | | right: QuartzComponent[] |
| | | footer: QuartzComponent |
| | |
| | | const contentIndexScript = `const fetchData = fetch("${contentIndexPath}").then(data => data.json())` |
| | | |
| | | return { |
| | | css: [joinSegments(baseDir, "index.css"), ...staticResources.css], |
| | | css: [ |
| | | { |
| | | content: joinSegments(baseDir, "index.css"), |
| | | }, |
| | | ...staticResources.css, |
| | | ], |
| | | js: [ |
| | | { |
| | | src: joinSegments(baseDir, "prescript.js"), |
| | |
| | | header, |
| | | beforeBody, |
| | | pageBody: Content, |
| | | afterBody, |
| | | left, |
| | | right, |
| | | footer: Footer, |
| | |
| | | </div> |
| | | </div> |
| | | <Content {...componentData} /> |
| | | <hr /> |
| | | <div class="page-footer"> |
| | | {afterBody.map((BodyComponent) => ( |
| | | <BodyComponent {...componentData} /> |
| | | ))} |
| | | </div> |
| | | </div> |
| | | {RightComponent} |
| | | <Footer {...componentData} /> |
| | | </Body> |
| | | <Footer {...componentData} /> |
| | | </div> |
| | | </body> |
| | | {pageResources.js |