Skip to content

Commit

Permalink
re-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiaagarwal committed Mar 30, 2024
1 parent 5454440 commit 9fab26c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
10 changes: 5 additions & 5 deletions quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ const config: QuartzConfig = {
gray: "#b8b8b8",
darkgray: "#4e4e4e",
dark: "#2b2b2b",
secondary: "#284b63",
tertiary: "#84a59d",
secondary: "#a35fc6",
tertiary: "#FF85B0",
highlight: "rgba(143, 159, 169, 0.15)",
},
darkMode: {
light: "#161618",
light: "#212529",
lightgray: "#393639",
gray: "#646464",
darkgray: "#d4d4d4",
dark: "#ebebec",
secondary: "#7b97aa",
tertiary: "#84a59d",
secondary: "#a35fc6",
tertiary: "#FF85B0",
highlight: "rgba(143, 159, 169, 0.15)",
},
},
Expand Down
3 changes: 1 addition & 2 deletions quartz.layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export const sharedPageComponents: SharedLayout = {
header: [],
footer: Component.Footer({
links: {
GitHub: "https://github.com/jackyzha0/quartz",
"Discord Community": "https://discord.gg/cRFFHYye7t",
"Github": "https://github.com/abhiaagarwal",
},
}),
}
Expand Down
7 changes: 0 additions & 7 deletions quartz/components/Head.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { i18n } from "../i18n"
import { FullSlug, joinSegments, pathToRoot } from "../util/path"
import { JSResourceToScriptElement } from "../util/resources"
import { googleFontHref } from "../util/theme"
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
Expand All @@ -11,12 +10,6 @@ export default (() => {
fileData.description?.trim() ?? i18n(cfg.locale).propertyDefaults.description
const { css, js } = externalResources

const url = new URL(`https://${cfg.baseUrl ?? "example.com"}`)
const path = url.pathname as FullSlug
const baseDir = fileData.slug === "404" ? path : pathToRoot(fileData.slug!)

const iconPath = joinSegments(baseDir, "static/icon.png")

return (
<head>
<title>{title}</title>
Expand Down
5 changes: 5 additions & 0 deletions quartz/components/RecentNotes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ export default ((userOpts?: Partial<Options>) => {
const opts = { ...defaultOptions(cfg), ...userOpts }
const pages = allFiles.filter(opts.filter).sort(opts.sort)
const remaining = Math.max(0, pages.length - opts.limit)

if (fileData.slug !== "index") {
return <></>
}

return (
<div class={classNames(displayClass, "recent-notes")}>
<h3>{opts.title ?? i18n(cfg.locale).components.recentNotes.title}</h3>
Expand Down
2 changes: 1 addition & 1 deletion quartz/i18n/locales/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
title: "Explorer",
},
footer: {
createdWith: "Created with",
createdWith: "Made with 🤔 and",
},
graph: {
title: "Graph View",
Expand Down

0 comments on commit 9fab26c

Please sign in to comment.