diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index b36c49c..c19bec8 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - name: Build Link Index - uses: jackyzha0/hugo-obsidian@v2.4 + uses: jackyzha0/hugo-obsidian@v2.5 with: index: true input: content diff --git a/content/_index.md b/content/_index.md index d981591..b7b1121 100644 --- a/content/_index.md +++ b/content/_index.md @@ -11,7 +11,7 @@ Host your second brain and [digital garden](https://jzhao.xyz/posts/digital-gard ## Get Started > 📚 [Setup your own digital garden using Quartz](notes/setup.md) -Not convinced yet? Look at some [community digital gardens](moc/showcase) built with Quartz, or read about [why I made Quartz](notes/philosophy.md) to begin with! +Not convinced yet? Look at some [community digital gardens](moc/showcase) built with Quartz, or read about [[notes/philosophy | why I made Quartz]] to begin with! ## Troubleshooting - 🚧 [Troubleshooting and FAQ](notes/troubleshooting.md) diff --git a/content/notes/editing.md b/content/notes/editing.md index db76af8..db26229 100644 --- a/content/notes/editing.md +++ b/content/notes/editing.md @@ -15,7 +15,7 @@ Of course, all the files are in Markdown so you could just use your favourite te ### Ignoring Files Only want to publish a subset of all of your notes? Don't worry, Quartz makes this a simple two-step process. -❌ [Excluding pages from being published](notes/ignore-notes.md) +❌ [Excluding pages from being published](notes/ignore%20notes.md) ### Folder Structure Here's a rough overview of what's what. @@ -32,7 +32,7 @@ For example, I want to link this current document to `notes/config.md`. ``` ### Front Matter -Hugo is picky when it comes to metadata for files. Ensure that you have a title defined at the top of your file like so: +Hugo is picky when it comes to metadata for files. Make sure that your title is double-quoted and that you have a title defined at the top of your file like so: ```markdown --- @@ -45,7 +45,7 @@ Rest of your content here... ## Previewing Changes This step is purely optional and mostly for those who want to see the published version of their digital garden locally before opening it up to the internet. This is *highly recommended*. -👀 [Preview Quartz Changes](notes/preview-changes.md) +👀 [Preview Quartz Changes](notes/preview%20changes.md) For those who like to live life more on the edge, viewing the garden through Obsidian gets you pretty close to the real thing. diff --git a/content/notes/ignore-notes.md b/content/notes/ignore notes.md similarity index 100% rename from content/notes/ignore-notes.md rename to content/notes/ignore notes.md diff --git a/content/notes/philosophy.md b/content/notes/philosophy.md index 9325415..bf04da3 100644 --- a/content/notes/philosophy.md +++ b/content/notes/philosophy.md @@ -1,5 +1,5 @@ --- -title: Quartz Philosophy +title: "Quartz Philosophy" --- > “[One] who works with the door open gets all kinds of interruptions, but [they] also occasionally gets clues as to what the world is and what might be important.” — Richard Hamming diff --git a/content/notes/preview-changes.md b/content/notes/preview changes.md similarity index 100% rename from content/notes/preview-changes.md rename to content/notes/preview changes.md diff --git a/content/notes/troubleshooting.md b/content/notes/troubleshooting.md index 3552fc9..a0bf569 100644 --- a/content/notes/troubleshooting.md +++ b/content/notes/troubleshooting.md @@ -4,7 +4,7 @@ title: "Troubleshooting and FAQ" ## Common Pitfalls ### Can I publish only a subset of my pages? -Yes! Quartz makes selective publishing really easy. Heres a guide on [excluding pages from being published](notes/ignore-notes.md). +Yes! Quartz makes selective publishing really easy. Heres a guide on [excluding pages from being published](notes/ignore%20notes.md). ### Can I host this myself and not on GitHub Pages? Yes! All built files can be found under `/public` in the `master` branch. More details under [hosting](notes/hosting.md). diff --git a/layouts/partials/search.html b/layouts/partials/search.html index 62556a4..b12b731 100644 --- a/layouts/partials/search.html +++ b/layouts/partials/search.html @@ -185,8 +185,8 @@ return [...results[0].result] } } - const allIds = [...getByField('title'), ...getByField('content')] - const finalResults = allIds.map(fetch) + const allIds = new Set([...getByField('title'), ...getByField('content')]) + const finalResults = [...allIds].map(fetch) // display if (finalResults.length === 0) {