Skip to content

Commit

Permalink
Quartz sync: Jan 5, 2025, 11:25 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanamiiiii committed Jan 5, 2025
1 parent bc7f3eb commit 7f83765
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 237 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ tsconfig.tsbuildinfo
private/
.replit
replit.nix
.obsidian/workspace.json
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
public
node_modules
.quartz-cache
.obsidian
blogs
5 changes: 3 additions & 2 deletions blogs/.obsidian/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"aliases": "aliases",
"cssclasses": "multitext",
"tags": "tags",
"updated": "datetime"
"updated": "datetime",
"invisible": "checkbox"
}
}
}
231 changes: 0 additions & 231 deletions blogs/.obsidian/workspace.json

This file was deleted.

3 changes: 2 additions & 1 deletion blogs/Misc/Mendeley.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description: Mendeley Reference Manager
tags:
- Research
created: 2024-10-21T13:22:32+09:00
updated: 2025-01-05T00:42:00+09:00
updated: 2025-01-05T11:04:18+09:00
publish: true
invisible: true
---

https://www.mendeley.com
Expand Down
3 changes: 2 additions & 1 deletion blogs/Misc/Zotero.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description: Zotero
tags:
- Research
created: 2024-10-21T13:25:06+09:00
updated: 2025-01-05T00:41:55+09:00
updated: 2025-01-05T11:04:32+09:00
publish: true
invisible: true
---

https://www.zotero.org
Expand Down
12 changes: 11 additions & 1 deletion quartz.layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@ export const defaultContentPageLayout: PageLayout = {
Component.MobileOnly(Component.Spacer()),
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()),
Component.DesktopOnly(
Component.Explorer({
filterFn: (node) => {
if (node.file) {
return node.name !== "tags" && node.file?.frontmatter?.invisible !== true
} else {
return node.name !== "Misc"
}
},
}),
),
],
right: [
Component.Graph(),
Expand Down
4 changes: 3 additions & 1 deletion quartz/util/og.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export async function getSatoriFont(headerFontName: string, bodyFontName: string
async function fetchTtf(fontName: string, weight: FontWeight): Promise<ArrayBuffer> {
try {
// Get css file from google fonts
const cssResponse = await fetch(`https://fonts.googleapis.com/css2?family=${fontName}:wght@${weight}`)
const cssResponse = await fetch(
`https://fonts.googleapis.com/css2?family=${fontName}:wght@${weight}`,
)
const css = await cssResponse.text()

// Extract .ttf url from css file
Expand Down

0 comments on commit 7f83765

Please sign in to comment.