diff --git a/content/daily/2024/07/2024-07-04.md b/content/daily/2024/07/2024-07-04.md index dd4962485..598b557cc 100644 --- a/content/daily/2024/07/2024-07-04.md +++ b/content/daily/2024/07/2024-07-04.md @@ -1,7 +1,7 @@ --- title: 2024-07-04 author: ["Justin"] -lastmod: 2024-07-04T11:17:25-04:00 +lastmod: 2024-07-05T06:59:08-04:00 draft: false --- @@ -13,7 +13,8 @@ draft: false ### Tasks {#tasks} -- [ ] Chinese +- [X] Chinese +- 800! - [X] Read @@ -32,6 +33,14 @@ draft: false - scheme in rust, found it because apparently it's (going to be) used for the plugin system in helix? - Might be neat as a scripting tool since I have rust on all my computers +- So I got quotebacks dark/light mode based on quartz's state working. I had to + futz around with the javascript, but I think quotebacks is largely abandoned + in the sense it won't be getting updates, so it's probably not a big deal to + edit it. + - I also added it in under ofm.tsx, basically an option under mermaid. I'm not + technically using obsidian but it seemed like the easiest place to jab in + some javascript. +- I need to fix dates. Maybe have ox-hugo just spit it out in the frontmatter. diff --git a/content/daily/2024/07/2024-07-05.md b/content/daily/2024/07/2024-07-05.md new file mode 100644 index 000000000..6fb1ceefe --- /dev/null +++ b/content/daily/2024/07/2024-07-05.md @@ -0,0 +1,75 @@ +--- +title: 2024-07-05 +author: ["Justin"] +lastmod: 2024-07-05T19:51:26-04:00 +draft: false +--- + +
+ +## Agenda {#agenda} + +
+ +### Tasks {#tasks} + +- [X] Chinese + - 570! +- [X] Reading +- [X] Progress on anki gen +- [X] Fix (try to) some of the CSS for this +- [X] I remembered I need to fix the dates on the emacs side + - I forgot to add the date in the capture template for dailies, so I guess maybe whenever I did a quartz sync they messed up?' + +
+ +
+ +
+ +## Notes {#notes} + +
+ +### Reading {#reading} + +
+ +#### software {#https-www-dot-pipes-dot-digital} + +- Like a weird visual programming thing for passing data from feeds and such? + +
+ +
+ +#### software {#https-github-dot-com-prefix-dev-pixi} + +- Package manager built in rust. Upon skimming, I assume basically building + packages for python and R using rattler, which is basically conda. So, uh... + conda abstraction layer?' +- Honestly think it might be neat given how annoying it is to distribute python + stuff. Generally I just use pipx (since, I mean, unless you're on an embedded + system, the bloat doesn't really matter much) + +
+ +
+ +
+ +
+ +## Journal {#journal} + +Fireworks make sleep weird. Okay, I'd `like` to get the GPT stuff setup in emacs +today. Caught up on anki, so need to not get behind. I got the CSS +idiosyncrasies fixed (more or less) but noticed it's still kinda borked under tasks. + +Also I want to get started on my anki LLM notebook! I need to study more CS/Math, etc. + stuff. + +Maybe some improvements to my crystow thing I made. It was a quick demo +just to get used to crystal syntax but I'd like to maybe add some stuff. + +
diff --git a/content/daily/2024/07/2024-07-06.md b/content/daily/2024/07/2024-07-06.md new file mode 100644 index 000000000..37eaaf137 --- /dev/null +++ b/content/daily/2024/07/2024-07-06.md @@ -0,0 +1,47 @@ +--- +title: 2024-07-06 +author: ["Justin"] +date: 2024-07-06T06:20:00-04:00 +lastmod: 2024-07-06T19:04:54-04:00 +draft: false +--- + +
+ +## Agenda {#agenda} + +
+ +### Tasks {#tasks} + +- [X] Chinese + - 850! +- [X] Reading +- [X] More work on anki thingy +- [X] Finalize mpv stuff + - Think I got it as good as I can get on a 2080. Might make a custom config + for my macbook, but I don't use it unless traveling, so, eh. + +
+ +
+ +
+ +## Notes {#notes} + +- "the typical adult in china knows approximately 8,000 to 10,000 hanzi" + - Welp. +- I've been using SVP with mpv - I think this works well enough combined with shaders. + +
+ +
+ +## Journal {#journal} + +Weekend. Need to tinker with vapoursynth more. Got distracted and didn't get to +futz around with as much. Then to make progress on my thing I'm working on, +then Chinese studying. I've noticed ~300 cards tends to take about 2-3 hours. + +
diff --git a/content/daily/2024/07/2024-07-07.md b/content/daily/2024/07/2024-07-07.md new file mode 100644 index 000000000..04aaf9af3 --- /dev/null +++ b/content/daily/2024/07/2024-07-07.md @@ -0,0 +1,74 @@ +--- +title: 2024-07-07 +author: ["Justin"] +date: 2024-07-07T05:16:00-04:00 +lastmod: 2024-07-07T07:49:51-04:00 +draft: false +--- + +
+ +## Agenda {#agenda} + +
+ +### Tasks {#tasks} + +- [ ] Chinese +- [ ] Read +- [ ] Anki stuff +- [X] CSS spacing + - Think I got it - distinct CSS for h\* + ul vs. p, cumbersome, but with + variables shouldn't hurt too much to change down the line. + - Also changed the header icons around a bit + +
+ +
+ +
+ +## Notes {#notes} + +
+ +### Reading {#reading} + +
+ +#### Boop. {#boop-dot} + +
+ +##### Beep. {#beep-dot} + +
+ +###### Blep. {#blep-dot} + + +
+ +
+ +
+ +
+ +
+ +
+ +## Journal {#journal} + +A little bit more with the CSS spacing, then can work on anki project. + +
+ +### Test {#test} + +Beep, CSS test. + +
+ +
diff --git a/functions.ts b/functions.ts index 694079f15..9a0d3f707 100644 --- a/functions.ts +++ b/functions.ts @@ -1,5 +1,11 @@ import { Options } from "./quartz/components/ExplorerNode" +const toTitleCase = (str: string): string => { + return str.replace(/\w\S*/g, (txt: string): string => { + return txt.charAt(0).toUpperCase() + txt.slice(1).toLowerCase() + }) +} + export const mapFn: Options["mapFn"] = (node) => { node.displayName = node.displayName.toLowerCase() @@ -13,7 +19,7 @@ export const mapFn: Options["mapFn"] = (node) => { node.displayName = "📄 " + node.displayName } } else { - node.displayName = "📁 " + node.displayName + node.displayName = "📁 " + toTitleCase(node.displayName) } } } diff --git a/quartz.config.ts b/quartz.config.ts index 80bc55d9d..5871f303e 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -23,9 +23,9 @@ const config: QuartzConfig = { fontOrigin: "googleFonts", cdnCaching: true, typography: { - header: "Schibsted Grotesk", - body: "Source Sans Pro", - code: "IBM Plex Mono", + header: "Open Sans", + body: "Open Sans", + code: "Space Mono", }, colors: { lightMode: { diff --git a/quartz/components/ContentMeta.tsx b/quartz/components/ContentMeta.tsx index 29caadf16..24ff6324f 100644 --- a/quartz/components/ContentMeta.tsx +++ b/quartz/components/ContentMeta.tsx @@ -20,24 +20,51 @@ export default ((opts?: Partial) => { // Merge options with defaults const options: ContentMetaOptions = { ...defaultOptions, ...opts } + function getGithubLink(filePath: string): string { + const githubBaseUrl = "https://raw.githubusercontent.com/brickfrog/notes.justin.vc/v4/" + return `${githubBaseUrl}${filePath}` + } + function ContentMetadata({ cfg, fileData, displayClass }: QuartzComponentProps) { const text = fileData.text if (text) { const segments: (string | JSX.Element)[] = [] - let segment = "" + let segment: JSX.Element | null = null if (fileData.dates?.created) { const createdDate = formatDate(getDate(cfg, fileData)!, cfg.locale) - const modifiedDate = fileData.frontmatter?.lastmod - ? formatDate(getDate(cfg, fileData, "modified")!, cfg.locale) - : null + const githubLink = fileData.filePath ? getGithubLink(fileData.filePath) : "#" - segment += `Created: ${createdDate}` + const createdDateSegment = ( + + {createdDate} + + ) - if (modifiedDate && createdDate !== modifiedDate) { - segment += ` ⮕ Modified: ${modifiedDate}` + if (fileData.frontmatter?.lastmod) { + const modifiedDate = formatDate(getDate(cfg, fileData, "modified")!, cfg.locale) + if (createdDate !== modifiedDate) { + const createdDateSegment = ( + {createdDate} + ) + + const modifiedDateSegment = ( + + {modifiedDate} + + ) + segment = ( + + {createdDateSegment}–{modifiedDateSegment} + + ) + } else { + segment = createdDateSegment + } + } else { + segment = createdDateSegment } } diff --git a/quartz/styles/custom.scss b/quartz/styles/custom.scss index 7d47d476f..cea3aed1f 100644 --- a/quartz/styles/custom.scss +++ b/quartz/styles/custom.scss @@ -113,75 +113,82 @@ p.timestamp-wrapper { /* Headings */ .jvc h2, .jvc h3, .jvc h4, .jvc h5, .jvc h6 { + font-size: 1.0em; margin-top: var(--base-margin); margin-bottom: var(--base-margin); } .jvc h2 { - font-size: 1.5em; margin-left: 0; padding-left: 0; color: var(--orgh2); } .jvc h2::before { - content: "○ "; + content: "◉ "; } .jvc h3 { - font-size: 1.4em; margin-left: var(--heading-indent); padding-left: 0; color: var(--orgh3); } .jvc h3::before { - content: "◆ "; + content: "◎ "; } +/* Adjust content under h2 */ + +.jvc h2 + ul { + margin-left: calc(var(--heading-indent) * 1); +} + + /* Adjust content under h3 */ -.jvc h3 + * { +.jvc h3 + p { + margin-left: calc(var(--heading-indent) * 1); +} + +.jvc h3 + ul { margin-left: calc(var(--heading-indent) * 2); } +/* Adjust content under h4 */ .jvc h4 { - font-size: 1.3em; margin-left: calc(var(--heading-indent) * 2); padding-left: 0; color: var(--orgh4); } .jvc h4::before { - content: "▲ "; + content: "◈ "; } -/* Adjust content under h4 */ .jvc h4 + * { margin-left: calc(var(--heading-indent) * 3); } .jvc h5 { - font-size: 1.2em; margin-left: calc(var(--heading-indent) * 3); padding-left: 0; color: var(--orgh5); } .jvc h5::before { - content: "■ "; + content: "❀ "; } .jvc h6 { - font-size: 1.1em; margin-left: calc(var(--heading-indent) * 4); padding-left: 0; color: var(--orgh6); } .jvc h6::before { - content: "● "; + content: "◇ "; } /* Lists */ .jvc ul, .jvc ol { margin-top: 0.5em; margin-bottom: 0.5em; - padding-left: var(--base-indent); + padding-left: calc(var(--base-indent) + 0px); list-style-position: outside; } @@ -218,11 +225,12 @@ p.timestamp-wrapper { } .jvc > p::before { - content: "● "; + content: "► "; padding-right: 5px; font-size: 12px; } + .jvc li p::before { content: ''; } @@ -269,4 +277,10 @@ article.popover-hint::after { padding-bottom: 1em; } -/* Quotebacks */ \ No newline at end of file +/* Metadata */ + +p.content-meta a { + /* your styles here */ + color: var(--gray); /* example: change link color */ + text-decoration: underline; /* example: underline on hover */ +}