| | |
| | | export const sharedPageComponents: SharedLayout = { |
| | | head: Component.Head(), |
| | | header: [], |
| | | afterBody: [], |
| | | footer: Component.Footer({ |
| | | links: { |
| | | GitHub: "https://github.com/jackyzha0/quartz", |
| | |
| | | // components for pages that display a single page (e.g. a single note) |
| | | export const defaultContentPageLayout: PageLayout = { |
| | | beforeBody: [ |
| | | Component.Breadcrumbs(), |
| | | Component.ConditionalRender({ |
| | | component: Component.Breadcrumbs(), |
| | | condition: (page) => page.fileData.slug !== "index", |
| | | }), |
| | | Component.ArticleTitle(), |
| | | Component.ContentMeta(), |
| | | Component.TagList(), |
| | |
| | | left: [ |
| | | Component.PageTitle(), |
| | | Component.MobileOnly(Component.Spacer()), |
| | | Component.Search(), |
| | | Component.Darkmode(), |
| | | Component.DesktopOnly(Component.Explorer()), |
| | | Component.Flex({ |
| | | components: [ |
| | | { |
| | | Component: Component.Search(), |
| | | grow: true, |
| | | }, |
| | | { Component: Component.Darkmode() }, |
| | | { Component: Component.ReaderMode() }, |
| | | ], |
| | | }), |
| | | Component.Explorer(), |
| | | ], |
| | | right: [ |
| | | Component.Graph(), |
| | |
| | | left: [ |
| | | Component.PageTitle(), |
| | | Component.MobileOnly(Component.Spacer()), |
| | | Component.Search(), |
| | | Component.Darkmode(), |
| | | Component.DesktopOnly(Component.Explorer()), |
| | | Component.Flex({ |
| | | components: [ |
| | | { |
| | | Component: Component.Search(), |
| | | grow: true, |
| | | }, |
| | | { Component: Component.Darkmode() }, |
| | | ], |
| | | }), |
| | | Component.Explorer(), |
| | | ], |
| | | right: [], |
| | | } |