Jacky Zhao
2021-11-21 48eb9ebc5fdba0845c6295e8abb6f574ec75171d
better search, fix spacing support, bump hugo-obsidian
6 files modified
2 files renamed
18 ■■■■ changed files
.github/workflows/deploy.yaml 2 ●●● patch | view | raw | blame | history
content/_index.md 2 ●●● patch | view | raw | blame | history
content/notes/editing.md 6 ●●●● patch | view | raw | blame | history
content/notes/ignore notes.md patch | view | raw | blame | history
content/notes/philosophy.md 2 ●●● patch | view | raw | blame | history
content/notes/preview changes.md patch | view | raw | blame | history
content/notes/troubleshooting.md 2 ●●● patch | view | raw | blame | history
layouts/partials/search.html 4 ●●●● patch | view | raw | blame | history
.github/workflows/deploy.yaml
@@ -12,7 +12,7 @@
      - 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
content/_index.md
@@ -11,7 +11,7 @@
## 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)
content/notes/editing.md
@@ -15,7 +15,7 @@
### 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 @@
```
### 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 @@
## 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.
content/notes/ignore notes.md
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
content/notes/preview changes.md
content/notes/troubleshooting.md
@@ -4,7 +4,7 @@
## 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).
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) {