diff --git a/content/daily/2024/06/2024-06-25.md b/content/daily/2024/06/2024-06-25.md index b1217457c..721c40517 100644 --- a/content/daily/2024/06/2024-06-25.md +++ b/content/daily/2024/06/2024-06-25.md @@ -1,7 +1,7 @@ --- title: 2024-06-25 author: ["Justin"] -lastmod: 2024-06-26T02:24:28-04:00 +lastmod: 2024-06-27T13:55:51-04:00 draft: false --- @@ -24,7 +24,7 @@ draft: false - 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 - template is a bit finnicky. + template is a bit odd. diff --git a/content/daily/2024/06/2024-06-26.md b/content/daily/2024/06/2024-06-26.md new file mode 100644 index 000000000..16f933b6f --- /dev/null +++ b/content/daily/2024/06/2024-06-26.md @@ -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 diff --git a/content/daily/2024/06/2024-06-27.md b/content/daily/2024/06/2024-06-27.md new file mode 100644 index 000000000..0c7e195f3 --- /dev/null +++ b/content/daily/2024/06/2024-06-27.md @@ -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. diff --git a/content/index.md b/content/index.md index e93b0a527..011053b25 100644 --- a/content/index.md +++ b/content/index.md @@ -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. 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. -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, it has a really nice package for emacs) +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) - [Daily Notes](/daily/) diff --git a/content/main/eww.md b/content/main/eww.md new file mode 100644 index 000000000..440dd7bd5 --- /dev/null +++ b/content/main/eww.md @@ -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. diff --git a/content/main/steins_gate.md b/content/main/steins_gate.md new file mode 100644 index 000000000..b70df1068 --- /dev/null +++ b/content/main/steins_gate.md @@ -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. diff --git a/quartz.config.ts b/quartz.config.ts index 8a20cf761..052419d21 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -8,7 +8,7 @@ import * as Plugin from "./quartz/plugins" */ const config: QuartzConfig = { configuration: { - pageTitle: "notes.justin.vc", + pageTitle: "🌆 justin's 𝕟𝕠𝕥𝕖𝕤", enableSPA: true, enablePopovers: true, analytics: { diff --git a/quartz.layout.ts b/quartz.layout.ts index ceb7ff628..79dbddfb6 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -7,8 +7,10 @@ export const sharedPageComponents: SharedLayout = { header: [], footer: Component.Footer({ links: { - GitHub: "https://github.com/jackyzha0/quartz", - "Discord Community": "https://discord.gg/cRFFHYye7t", + "justin.vc": "https://justin.vc", + "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) export const defaultContentPageLayout: PageLayout = { beforeBody: [ - Component.Breadcrumbs(), + Component.Breadcrumbs({ rootName: "Index" }), Component.ArticleTitle(), - Component.ContentMeta(), + Component.ContentMeta({ + showReadingTime: false, + }), Component.TagList(), ], left: [ diff --git a/quartz/components/ContentMeta.tsx b/quartz/components/ContentMeta.tsx index 5dfec1448..1a179ebdc 100644 --- a/quartz/components/ContentMeta.tsx +++ b/quartz/components/ContentMeta.tsx @@ -7,9 +7,6 @@ import { JSX } from "preact" import style from "./styles/contentMeta.scss" interface ContentMetaOptions { - /** - * Whether to display reading time - */ showReadingTime: boolean showComma: boolean } @@ -29,8 +26,17 @@ export default ((opts?: Partial) => { if (text) { const segments: (string | JSX.Element)[] = [] - if (fileData.dates) { - segments.push(formatDate(getDate(cfg, fileData)!, cfg.locale)) + let segment = "" + + 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 diff --git a/quartz/components/Date.tsx b/quartz/components/Date.tsx index 26b59647c..448690f91 100644 --- a/quartz/components/Date.tsx +++ b/quartz/components/Date.tsx @@ -9,19 +9,26 @@ interface Props { export type ValidDateType = keyof Required["dates"] -export function getDate(cfg: GlobalConfiguration, data: QuartzPluginData): Date | undefined { - if (!cfg.defaultDateType) { +export function getDate( + cfg: GlobalConfiguration, + data: QuartzPluginData, + overrideDateType?: ValidDateType, +): Date | undefined { + const dateType = overrideDateType ?? cfg.defaultDateType + + if (!dateType) { 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.`, ) } - return data.dates?.[cfg.defaultDateType] + + return data.dates?.[dateType] } export function formatDate(d: Date, locale: ValidLocale = "en-US"): string { return d.toLocaleDateString(locale, { year: "numeric", - month: "short", + month: "2-digit", day: "2-digit", }) } diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss index 04e07d7c2..1b3e10a11 100644 --- a/quartz/styles/base.scss +++ b/quartz/styles/base.scss @@ -119,7 +119,7 @@ a { & article { & > h1 { - font-size: 2rem; + font-size: 1.75rem; } & li:has(> input[type="checkbox"]) { @@ -295,7 +295,7 @@ h6 { // typography improvements h1 { - font-size: 1.75rem; + font-size: 1.65rem; margin-top: 2.25rem; margin-bottom: 1rem; }