Skip to content

Commit

Permalink
Fonts and translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sitin committed Sep 7, 2024
1 parent ccf8baa commit a0b8aa7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
11 changes: 7 additions & 4 deletions quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,25 @@ import * as Plugin from "./quartz/plugins"
*/
const config: QuartzConfig = {
configuration: {
pageTitle: "Mykhailo Ziatin",
pageTitle: "Михайло Зятін",
enableSPA: true,
enablePopovers: true,
analytics: {
provider: "plausible",
},
locale: "en-US",
locale: "uk-UA",
baseUrl: "https://mykhailo-ziatin.github.io/_",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created",
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
typography: {
header: "Schibsted Grotesk",
body: "Source Sans Pro",
// https://fonts.google.com/specimen/Cormorant+Garamond?lang=uk_Cyrl
header: "Cormorant Garamond",
// https://fonts.google.com/specimen/Cormorant?lang=uk_Cyrl
body: "Cormorant",
// https://fonts.google.com/specimen/IBM+Plex+Mono?lang=uk_Cyrl
code: "IBM Plex Mono",
},
colors: {
Expand Down
31 changes: 16 additions & 15 deletions quartz.explorer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@ import { Explorer } from "./quartz/components"

// forbidden tags
const excludeTags = [
"draft",
"hidden",
"private",
"non-explore",
]
"draft",
"hidden",
"private",
"non-explore",
]

const explorer = Explorer({
filterFn: (node) => {
// exclude files with forbidden tags
for (const tag of excludeTags) {
if (node.file?.frontmatter?.tags?.includes(tag)) return false
}

return true
},
})
// title: "Теми",
filterFn: (node) => {
// exclude files with forbidden tags
for (const tag of excludeTags) {
if (node.file?.frontmatter?.tags?.includes(tag)) return false
}

return true
},
})

export default explorer
export default explorer
1 change: 1 addition & 0 deletions quartz.layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const defaultContentPageLayout: PageLayout = {
Component.MobileOnly(Component.Spacer()),
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.RecentNotes()),
Component.DesktopOnly(explorer),
],
right: [
Expand Down
4 changes: 2 additions & 2 deletions quartz/i18n/locales/uk-UA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
warning: "Попередження",
failure: "Невдача",
danger: "Небезпека",
bug: "Баг",
bug: "Помилка",
example: "Приклад",
quote: "Цитата",
},
Expand All @@ -36,7 +36,7 @@ export default {
createdWith: "Створено за допомогою",
},
graph: {
title: "Вигляд графа",
title: "Зв'язки",
},
recentNotes: {
title: "Останні нотатки",
Expand Down

0 comments on commit a0b8aa7

Please sign in to comment.