diff --git a/quartz/components/ContentMeta.tsx b/quartz/components/ContentMeta.tsx index e378bccee..c2d35414c 100644 --- a/quartz/components/ContentMeta.tsx +++ b/quartz/components/ContentMeta.tsx @@ -1,4 +1,4 @@ -import { Date, getDate } from "./Date" +import { formatDate, getDate } from "./Date" import { QuartzComponentConstructor, QuartzComponentProps } from "./types" import readingTime from "reading-time" import { classNames } from "../util/lang" @@ -30,7 +30,7 @@ export default ((opts?: Partial) => { const segments: (string | JSX.Element)[] = [] if (fileData.dates) { - segments.push() + segments.push(formatDate(getDate(cfg, fileData)!)) } // Display reading time if enabled diff --git a/quartz/components/Date.tsx b/quartz/components/Date.tsx index 0a92cc4c3..26b59647c 100644 --- a/quartz/components/Date.tsx +++ b/quartz/components/Date.tsx @@ -27,5 +27,5 @@ export function formatDate(d: Date, locale: ValidLocale = "en-US"): string { } export function Date({ date, locale }: Props) { - return + return <>{formatDate(date, locale)} } diff --git a/quartz/components/Explorer.tsx b/quartz/components/Explorer.tsx index ec7c48ef7..7f8369f46 100644 --- a/quartz/components/Explorer.tsx +++ b/quartz/components/Explorer.tsx @@ -113,10 +113,10 @@ export default ((userOpts?: Partial) => {
-
    +
  • -
+
) diff --git a/quartz/components/ExplorerNode.tsx b/quartz/components/ExplorerNode.tsx index e57d67715..a22da547f 100644 --- a/quartz/components/ExplorerNode.tsx +++ b/quartz/components/ExplorerNode.tsx @@ -216,7 +216,7 @@ export function ExplorerNode({ node, opts, fullPath, fileData }: ExplorerNodePro )} {/* Recursively render children of folder */}
-
    ))} -
+
)} diff --git a/quartz/components/Header.tsx b/quartz/components/Header.tsx index eba17ae09..c58aecfa2 100644 --- a/quartz/components/Header.tsx +++ b/quartz/components/Header.tsx @@ -9,7 +9,7 @@ header { display: flex; flex-direction: row; align-items: center; - margin: 2rem 0; + padding: 1rem 2rem; gap: 1.5rem; } diff --git a/quartz/components/Search.tsx b/quartz/components/Search.tsx index 8b9755518..e7bb3596d 100644 --- a/quartz/components/Search.tsx +++ b/quartz/components/Search.tsx @@ -18,7 +18,7 @@ export default ((userOpts?: Partial) => { const opts = { ...defaultOptions, ...userOpts } const searchPlaceholder = i18n(cfg.locale).components.search.searchBarPlaceholder return ( -
+
- + ) } diff --git a/quartz/components/renderPage.tsx b/quartz/components/renderPage.tsx index 3914411ac..0bd6d2fd6 100644 --- a/quartz/components/renderPage.tsx +++ b/quartz/components/renderPage.tsx @@ -221,19 +221,19 @@ export function renderPage( const Body = BodyConstructor() const LeftComponent = ( - + ) const RightComponent = ( - + ) const lang = componentData.fileData.frontmatter?.lang ?? cfg.locale?.split("-")[0] ?? "en" @@ -242,29 +242,31 @@ export function renderPage(
+
+ {header.map((HeaderComponent) => ( + + ))} +
{LeftComponent} -
+
- +
+ +

-
+ {RightComponent}