diff --git a/quartz/components/ContentMeta.tsx b/quartz/components/ContentMeta.tsx index 40f2da6573126..4e351416e0ee6 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 0a92cc4c3c4f5..26b59647c281d 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 15615813070d3..7f8369f4691d3 100644 --- a/quartz/components/Explorer.tsx +++ b/quartz/components/Explorer.tsx @@ -112,12 +112,12 @@ export default ((userOpts?: Partial) => { - + + ) } diff --git a/quartz/components/ExplorerNode.tsx b/quartz/components/ExplorerNode.tsx index e57d677153686..a22da547f30f5 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/Search.tsx b/quartz/components/Search.tsx index 8b9755518ad5b..e7bb3596d7a43 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 a28fe11dcb35e..99be1d07f45cf 100644 --- a/quartz/components/renderPage.tsx +++ b/quartz/components/renderPage.tsx @@ -204,19 +204,19 @@ export function renderPage( const Body = BodyConstructor() const LeftComponent = ( - + ) const RightComponent = ( - + ) const lang = componentData.fileData.frontmatter?.lang ?? cfg.locale?.split("-")[0] ?? "en" diff --git a/quartz/components/styles/explorer.scss b/quartz/components/styles/explorer.scss index 397fd02411c40..b15e1af9d196c 100644 --- a/quartz/components/styles/explorer.scss +++ b/quartz/components/styles/explorer.scss @@ -60,7 +60,7 @@ button#explorer { grid-template-rows: 1fr; } -.folder-outer > ul { +.folder-outer > menu { overflow: hidden; } @@ -83,7 +83,7 @@ button#explorer { visibility: hidden; } - & ul { + & menu { list-style: none; margin: 0.08rem 0; padding: 0;