diff --git a/lib/parse-notes.ts b/lib/parse-notes.ts index 7cb5e6ef..3e855ddc 100644 --- a/lib/parse-notes.ts +++ b/lib/parse-notes.ts @@ -73,7 +73,7 @@ export const getNote = async (slug: string): Promise => { const { frontMatter, content } = getNoteData(slug); const { code: mdxSource } = await bundleMDX({ source: content, - cwd: process.cwd(), + cwd: path.join(process.cwd(), NOTES_DIR), xdmOptions: (options) => { options.remarkPlugins = [...(options.remarkPlugins ?? []), [remarkGfm, { singleTilde: false }]]; options.rehypePlugins = [ diff --git a/notes/bernie-sanders-bern-app-data.mdx b/notes/bernie-sanders-bern-app-data.mdx index 973bf7f5..b1a50c2a 100644 --- a/notes/bernie-sanders-bern-app-data.mdx +++ b/notes/bernie-sanders-bern-app-data.mdx @@ -11,9 +11,9 @@ tags: image: "/static/images/notes/bernie-sanders-bern-app-data/sad-bernie.jpg" --- -import Image from "./components/media/Image"; -import Figure from "./components/media/Figure"; -import Video from "./components/media/Video"; +import Image from "../components/media/Image"; +import Figure from "../components/media/Figure"; +import Video from "../components/media/Video"; The team behind Bernie Sanders' 2020 campaign [released a new web app](https://www.nbcnews.com/politics/2020-election/bernie-sanders-2020-campaign-unveils-app-increase-its-voter-database-n999206) last month named [BERN](https://app.berniesanders.com/). The goal of BERN is simple: to gather as much information as they can on as many voters in the United States as they can, and make their grassroots army of enthusiastic supporters do the work. It's undoubtedly a smart strategy, but also a concerning one for myself and other privacy advocates. diff --git a/notes/cloudflare-dns-archive-is-blocked.mdx b/notes/cloudflare-dns-archive-is-blocked.mdx index 6f0a91a4..fd5a39b1 100644 --- a/notes/cloudflare-dns-archive-is-blocked.mdx +++ b/notes/cloudflare-dns-archive-is-blocked.mdx @@ -11,8 +11,8 @@ tags: image: "/static/images/notes/cloudflare-dns-archive-is-blocked/archive-is.png" --- -import Image from "./components/media/Image"; -import Tweet from "./components/media/Tweet"; +import Image from "../components/media/Image"; +import Tweet from "../components/media/Tweet"; **tl;dr:** No. Quite the opposite, actually — [Archive.is](https://archive.is/)'s owner is intentionally blocking 1.1.1.1 users. diff --git a/notes/cool-bash-tricks-for-your-terminal-dotfiles.mdx b/notes/cool-bash-tricks-for-your-terminal-dotfiles.mdx index 47dfb6ca..c7928153 100644 --- a/notes/cool-bash-tricks-for-your-terminal-dotfiles.mdx +++ b/notes/cool-bash-tricks-for-your-terminal-dotfiles.mdx @@ -12,7 +12,7 @@ tags: image: "/static/images/notes/cool-bash-tricks-for-your-terminal-dotfiles/terminal.png" --- -import Image from "./components/media/Image"; +import Image from "../components/media/Image"; { return ( diff --git a/notes/dropping-dropbox.mdx b/notes/dropping-dropbox.mdx index 4ff38d1c..6b663333 100644 --- a/notes/dropping-dropbox.mdx +++ b/notes/dropping-dropbox.mdx @@ -11,10 +11,10 @@ tags: image: "/static/images/notes/dropping-dropbox/email.png" --- -import Image from "./components/media/Image"; -import Figure from "./components/media/Figure"; -import Tweet from "./components/media/Tweet"; -import Video from "./components/media/Video"; +import Image from "../components/media/Image"; +import Figure from "../components/media/Figure"; +import Tweet from "../components/media/Tweet"; +import Video from "../components/media/Video"; I've been a loyal Dropbox user since its inception as a [Y Combinator startup](https://www.ycombinator.com/apply/dropbox/) ten years ago. Having a folder on all of my devices that instantly synchronized with each other was a game-changer for me, and I grew dependent on it more and more as they gave out free storage like candy — 48 GB for having a Samsung Chromebook, 1 GB for "Posting \<3 to Twitter," and so on — until I needed to upgrade to Dropbox Pro. But this month I canceled my Pro subscription after a few too many strikes. diff --git a/notes/finding-candidates-subdomain-takeovers.mdx b/notes/finding-candidates-subdomain-takeovers.mdx index 9b08c294..986663aa 100644 --- a/notes/finding-candidates-subdomain-takeovers.mdx +++ b/notes/finding-candidates-subdomain-takeovers.mdx @@ -11,7 +11,7 @@ tags: image: "/static/images/notes/finding-candidates-subdomain-takeovers/hackerone-2.png" --- -import Figure from "./components/media/Figure"; +import Figure from "../components/media/Figure"; A **subdomain takeover** occurs when a subdomain (like _example_.jarv.is) points to a shared hosting account that is abandoned by its owner, leaving the endpoint available to claim for yourself. diff --git a/notes/github-actions.mdx b/notes/github-actions.mdx index eef40311..6f5a0dda 100644 --- a/notes/github-actions.mdx +++ b/notes/github-actions.mdx @@ -11,9 +11,9 @@ tags: image: "/static/images/notes/github-actions/actions-flow.png" --- -import Image from "./components/media/Image"; -import Figure from "./components/media/Figure"; -import Gist from "./components/media/Gist"; +import Image from "../components/media/Image"; +import Figure from "../components/media/Figure"; +import Gist from "../components/media/Gist"; **The Cloud-pocalypse:** Coming soon(er than you think) to a server near you. diff --git a/notes/how-to-pull-request-fork-github.mdx b/notes/how-to-pull-request-fork-github.mdx index ab0d81ed..bcf56163 100644 --- a/notes/how-to-pull-request-fork-github.mdx +++ b/notes/how-to-pull-request-fork-github.mdx @@ -12,7 +12,7 @@ tags: image: "/static/images/notes/how-to-pull-request-fork-github/step7-2.png" --- -import Image from "./components/media/Image"; +import Image from "../components/media/Image"; diff --git a/notes/how-to-shrink-linux-virtual-disk-vmware.mdx b/notes/how-to-shrink-linux-virtual-disk-vmware.mdx index 7f73e8e8..9243b934 100644 --- a/notes/how-to-shrink-linux-virtual-disk-vmware.mdx +++ b/notes/how-to-shrink-linux-virtual-disk-vmware.mdx @@ -11,8 +11,8 @@ tags: image: "/static/images/notes/how-to-shrink-linux-virtual-disk-vmware/screen-shot-2018-12-07-at-2-04-04-pm.png" --- -import Image from "./components/media/Image"; -import Figure from "./components/media/Figure"; +import Image from "../components/media/Image"; +import Figure from "../components/media/Figure";