diff --git a/quartz.layout.ts b/quartz.layout.ts index 6ab8d2e..59f709e 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -1,4 +1,4 @@ -import {PageLayout, SharedLayout} from "./quartz/cfg" +import { PageLayout, SharedLayout } from "./quartz/cfg" import * as Component from "./quartz/components" // components shared across all pages @@ -36,26 +36,19 @@ export const defaultContentPageLayout: PageLayout = { Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta(), - Component.TagList() + // Component.TagList() ], left: [ Component.PageTitle(), Component.MobileOnly(Component.Spacer()), Component.Search(), Component.DesktopOnly(Component.SidebarNav()), - // Component.DesktopOnly(Component.RecentNotes({ - // showTags: false, - // linkToMore: "/Archive", - // limit: 5, - // filter: (f) => !f.filePath?.includes("/Archive") - // })), Component.DesktopOnly(Component.Explorer({ folderClickBehavior: 'collapse', })), Component.DesktopOnly(Component.FloatingButtons({ position: 'right', })), - // Component.TagList(), ], right: [ Component.DesktopOnly(Component.Graph({ diff --git a/quartz/components/ContentMeta.tsx b/quartz/components/ContentMeta.tsx index 1d352dd..cf22354 100644 --- a/quartz/components/ContentMeta.tsx +++ b/quartz/components/ContentMeta.tsx @@ -1,7 +1,8 @@ -import {QuartzComponentConstructor, QuartzComponentProps} from "./types" +import { QuartzComponentConstructor, QuartzComponentProps } from "./types" import readingTime from "reading-time" -import {classNames} from "../util/lang" +import { classNames } from "../util/lang" import style from "./styles/contentMeta.scss" +import { pathToRoot, slugTag } from "../util/path" const TimeMeta = ({ value }: { value: Date }) => { const year = value.getFullYear() @@ -91,23 +92,23 @@ function ContentMetadataComponent({ cfg, fileData, displayClass }: QuartzCompone - {/*{fileData.frontmatter?.tags && fileData.frontmatter.tags.length > 0 && (*/} - {/*
*/} - {/*)}*/} + {fileData.frontmatter?.tags && fileData.frontmatter.tags.length > 0 && ( + + )} ) diff --git a/quartz/components/Head.tsx b/quartz/components/Head.tsx index 3e29d6d..f4ffa28 100644 --- a/quartz/components/Head.tsx +++ b/quartz/components/Head.tsx @@ -70,6 +70,16 @@ export default (() => { + {cfg.baseUrl && ( + <> + + > + )} { const content = htmlToJsx(fileData.filePath!, tree) const classes: string[] = fileData.frontmatter?.cssclasses ?? [] - const classString = ["popover-hint page-transition", ...classes].join(" ") + const classString = ["popover-hint", ...classes].join(" ") return