diff --git a/quartz.layout.ts b/quartz.layout.ts index b5a1639..fac2e3b 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -16,9 +16,13 @@ export const sharedPageComponents: SharedLayout = { // components for pages that display a single page (e.g. a single note) export const defaultContentPageLayout: PageLayout = { beforeBody: [ - Component.Breadcrumbs(), + Component.Breadcrumbs({ + showCurrentPage: false, + }), Component.ArticleTitle(), - Component.ContentMeta(), + Component.ContentMeta({ + hideReadingTime: true, + }), Component.TagList(), ], left: [ @@ -37,7 +41,15 @@ export const defaultContentPageLayout: PageLayout = { // components for pages that display lists of pages (e.g. tags or folders) export const defaultListPageLayout: PageLayout = { - beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()], + beforeBody: [ + Component.Breadcrumbs({ + showCurrentPage: false, + }), + Component.ArticleTitle(), + Component.ContentMeta({ + hideReadingTime: true, + }), + ], left: [ Component.PageTitle(), Component.MobileOnly(Component.Spacer()), diff --git a/quartz/components/ContentMeta.tsx b/quartz/components/ContentMeta.tsx index 4fc6d70..5cf1bb7 100644 --- a/quartz/components/ContentMeta.tsx +++ b/quartz/components/ContentMeta.tsx @@ -12,7 +12,7 @@ interface ContentMetaOptions { } const defaultOptions: ContentMetaOptions = { - showReadingTime: true, + showReadingTime: false, } export default ((opts?: Partial) => { @@ -29,7 +29,6 @@ export default ((opts?: Partial) => { segments.push(formatDate(getDate(cfg, fileData)!, cfg.locale)) } - if (enabled !== false) { // Display reading time if enabled if (options.showReadingTime) { const { minutes, words: _words } = readingTime(text)