Quartz sync: Jun 27, 2024, 2:33 PM

This commit is contained in:
Justin 2024-06-27 14:33:39 -04:00
parent 1d931e6897
commit 15dc72f392
11 changed files with 153 additions and 22 deletions

View File

@ -1,7 +1,7 @@
--- ---
title: 2024-06-25 title: 2024-06-25
author: ["Justin"] author: ["Justin"]
lastmod: 2024-06-26T02:24:28-04:00 lastmod: 2024-06-27T13:55:51-04:00
draft: false draft: false
--- ---
@ -24,7 +24,7 @@ draft: false
- Trying this out, I ended up making a new capture template for my org-roam - Trying this out, I ended up making a new capture template for my org-roam
dailies, as you can see here. The differences between capture-today and the dailies, as you can see here. The differences between capture-today and the
template is a bit finnicky. template is a bit odd.
<!--listend--> <!--listend-->

View File

@ -0,0 +1,42 @@
---
title: 2024-06-26
author: ["Justin"]
lastmod: 2024-06-26T22:50:09-04:00
draft: false
---
## Agenda {#agenda}
### Tasks {#tasks}
- [X] Chinese
I did not finish all the cards, though
- [ ] Read
## Summary {#summary}
I think 'The Bear' premieres today, so probably more lazy of a day. Okay, no I
misread things. I guess it's tomorrow?
## Notes {#notes}
### Thoughts {#thoughts}
- I went down an mpv rabbithole. Thanks random person in one of my chats. I
didn't realize [GitHub - bloc97/Anime4K: A High-Quality Real Time Upscaler for
Anime Video](https://github.com/bloc97/Anime4K) was a thing. I think I notice the difference? I'm not on a 4K
monitor, though.
- I'm finally watching [Steins;Gate]({{< relref "../../../main/steins_gate.md" >}}) - I've played the VN twice, but kept
putting off watching the anime.
- After finishing Chinese practice I think I want to work on my anki script
using batch OpenAI calls?
- Things I asked GPT today!
- "how do" with database migration tools (I'm building some side apps for
funsies and I've used them before but never really knew "first principles"
for them)
- Sitting here pondering if I should change the name of this bullet point
- Thots

View File

@ -0,0 +1,46 @@
---
title: 2024-06-27
author: ["Justin"]
lastmod: 2024-06-27T10:40:41-04:00
tags: ["stub"]
draft: false
---
## Agenda {#agenda}
### Tasks {#tasks}
- [X] Chinese
- 700 reviews!
- [X] Read
## Notes {#notes}
### Reading {#reading}
-[ The plan-execute pattern](https://mmapped.blog/posts/29-plan-execute)
### Thoughts / TIL {#thoughts-til}
- Spent time futzing with [Eww - Widgets for everyone! - eww documentation](https://elkowar.github.io/eww/)
- I guess it's worth making a page for it? [eww]({{< relref "../../../main/eww.md" >}})
- Still pondering some quartz changes I'd like to make, ox-hugo can use
categories (e.g. @foo), hugo accommodates it - I'd like to see this reflected in
quartz too but I'm not sure how I should handle them.
- Spent awhile tinkering with warp - I still think the idea of a terminal you
have to login to is really dumb, but aesthetically it's nice. I just wish you
could get rid of the tabs. Seems like people have been requesting it since 2022
so I doubt they're going to implement it anytime soon. It effectively makes it
a non-starter as my meta+enter shortcut for terminal though.
- I noticed quartz doesn't use my explorer changes when in a folder.
Investigate + maybe make an issue(?)
## Journal {#journal}
Got behind on Chinese, caught up. The Bear S3 premiered today. Spent some timer
tinkering with eww but sticking with i3blocks for the moment. Future project.

View File

@ -1,14 +1,18 @@
--- ---
title: Welcome title: Index
--- ---
> 袖まくり たすきがけ
> 鉢巻しめて がんばって
> 疲れたら お茶にして
> 少すこしずつ良よくなるよ
> お勉強
I haven't prettied it up yet, but plan on using this as a dumping ground for notes and media and such. I haven't prettied it up yet, but plan on using this as a dumping ground for notes and media and such.
The ideal would be then to utilize those for bigger articles on the [main site(?)](https://justin.vc) - we'll see how it goes. It's abit heavier on dependencies than I would like. The ideal would be then to utilize those for bigger articles on the [main site(?)](https://justin.vc) - we'll see how it goes. It's abit heavier on dependencies than I would like.
Before this I was planning on doing some mass exports with a doomscript but I found quartz to be a easier solution, with a bonus that it kind of looks like (which I'm sure it was originally meant for) a host-yourself variant of obsidian publish. Before this I was planning on doing some mass exports with a doomscript but I found quartz to be a easier solution, with a bonus that it kind of looks like (which I'm sure it was originally meant for) a host-yourself variant of obsidian publish.
My workflow idea is: org-roam-daily note -> daily -> notes Most of these will be just random things I'm reading, I think. I still need to figure out a good way to do a slip-box. I have a org server extension I can send links to but I forget to do it. Same with pocket (non-open source reasons aside, the emacs package works well)
Most of these will be just random things I'm reading, I think. I still need to figure out a good way to do a slip-box. I have a org server extension I can send links to but I forget to do it. Same with pocket (non-open source reasons aside, it has a really nice package for emacs)
- [Daily Notes](/daily/) - [Daily Notes](/daily/)

12
content/main/eww.md Normal file
View File

@ -0,0 +1,12 @@
---
title: "eww"
author: ["Justin"]
date: 2024-06-27T03:48:00-04:00
lastmod: 2024-06-27T03:51:37-04:00
tags: ["stub", "software"]
draft: false
---
[GitHub - elkowar/eww: ElKowars wacky widgets](https://github.com/elkowar/eww) - widgets that you can use instead
(or ontop of) other window managers. I was looking into using it as a
replacement for i3blocks.

View File

@ -0,0 +1,10 @@
---
title: "Steins;Gate"
author: ["Justin"]
date: 2024-06-26T09:51:00-04:00
lastmod: 2024-06-26T09:58:52-04:00
tags: ["stub", "anime", "vn"]
draft: false
---
[Steins;Gate - Wikipedia](https://en.wikipedia.org/wiki/Steins;Gate) - Placeholder, but probably one of my favorite media series.

View File

@ -8,7 +8,7 @@ import * as Plugin from "./quartz/plugins"
*/ */
const config: QuartzConfig = { const config: QuartzConfig = {
configuration: { configuration: {
pageTitle: "notes.justin.vc", pageTitle: "🌆 justin's 𝕟𝕠𝕥𝕖𝕤",
enableSPA: true, enableSPA: true,
enablePopovers: true, enablePopovers: true,
analytics: { analytics: {

View File

@ -7,8 +7,10 @@ export const sharedPageComponents: SharedLayout = {
header: [], header: [],
footer: Component.Footer({ footer: Component.Footer({
links: { links: {
GitHub: "https://github.com/jackyzha0/quartz", "justin.vc": "https://justin.vc",
"Discord Community": "https://discord.gg/cRFFHYye7t", "org-roam": "https://orgroam.com",
"ox-hugo": "https://ox-hugo.scripter.co/",
"GNU Emacs": "https://www.gnu.org/software/emacs/",
}, },
}), }),
} }
@ -16,9 +18,11 @@ export const sharedPageComponents: SharedLayout = {
// components for pages that display a single page (e.g. a single note) // components for pages that display a single page (e.g. a single note)
export const defaultContentPageLayout: PageLayout = { export const defaultContentPageLayout: PageLayout = {
beforeBody: [ beforeBody: [
Component.Breadcrumbs(), Component.Breadcrumbs({ rootName: "Index" }),
Component.ArticleTitle(), Component.ArticleTitle(),
Component.ContentMeta(), Component.ContentMeta({
showReadingTime: false,
}),
Component.TagList(), Component.TagList(),
], ],
left: [ left: [

View File

@ -7,9 +7,6 @@ import { JSX } from "preact"
import style from "./styles/contentMeta.scss" import style from "./styles/contentMeta.scss"
interface ContentMetaOptions { interface ContentMetaOptions {
/**
* Whether to display reading time
*/
showReadingTime: boolean showReadingTime: boolean
showComma: boolean showComma: boolean
} }
@ -29,8 +26,17 @@ export default ((opts?: Partial<ContentMetaOptions>) => {
if (text) { if (text) {
const segments: (string | JSX.Element)[] = [] const segments: (string | JSX.Element)[] = []
if (fileData.dates) { let segment = ""
segments.push(formatDate(getDate(cfg, fileData)!, cfg.locale))
if (fileData.dates?.created) {
segment += `Created: ${formatDate(getDate(cfg, fileData)!, cfg.locale)}`
if (fileData.frontmatter?.lastmod) {
segment += ` ⮕ Modified: ${formatDate(getDate(cfg, fileData, "modified")!, cfg.locale)}`
}
}
if (segment) {
segments.push(segment)
} }
// Display reading time if enabled // Display reading time if enabled

View File

@ -9,19 +9,26 @@ interface Props {
export type ValidDateType = keyof Required<QuartzPluginData>["dates"] export type ValidDateType = keyof Required<QuartzPluginData>["dates"]
export function getDate(cfg: GlobalConfiguration, data: QuartzPluginData): Date | undefined { export function getDate(
if (!cfg.defaultDateType) { cfg: GlobalConfiguration,
data: QuartzPluginData,
overrideDateType?: ValidDateType,
): Date | undefined {
const dateType = overrideDateType ?? cfg.defaultDateType
if (!dateType) {
throw new Error( throw new Error(
`Field 'defaultDateType' was not set in the configuration object of quartz.config.ts. See https://quartz.jzhao.xyz/configuration#general-configuration for more details.`, `Field 'defaultDateType' was not set in the configuration object of quartz.config.ts. See https://quartz.jzhao.xyz/configuration#general-configuration for more details.`,
) )
} }
return data.dates?.[cfg.defaultDateType]
return data.dates?.[dateType]
} }
export function formatDate(d: Date, locale: ValidLocale = "en-US"): string { export function formatDate(d: Date, locale: ValidLocale = "en-US"): string {
return d.toLocaleDateString(locale, { return d.toLocaleDateString(locale, {
year: "numeric", year: "numeric",
month: "short", month: "2-digit",
day: "2-digit", day: "2-digit",
}) })
} }

View File

@ -119,7 +119,7 @@ a {
& article { & article {
& > h1 { & > h1 {
font-size: 2rem; font-size: 1.75rem;
} }
& li:has(> input[type="checkbox"]) { & li:has(> input[type="checkbox"]) {
@ -295,7 +295,7 @@ h6 {
// typography improvements // typography improvements
h1 { h1 {
font-size: 1.75rem; font-size: 1.65rem;
margin-top: 2.25rem; margin-top: 2.25rem;
margin-bottom: 1rem; margin-bottom: 1rem;
} }