mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
better search, fix spacing support, bump hugo-obsidian
This commit is contained in:
parent
82ba843e42
commit
48eb9ebc5f
8 changed files with 9 additions and 9 deletions
2
.github/workflows/deploy.yaml
vendored
2
.github/workflows/deploy.yaml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build Link Index
|
- name: Build Link Index
|
||||||
uses: jackyzha0/hugo-obsidian@v2.4
|
uses: jackyzha0/hugo-obsidian@v2.5
|
||||||
with:
|
with:
|
||||||
index: true
|
index: true
|
||||||
input: content
|
input: content
|
||||||
|
|
|
@ -11,7 +11,7 @@ Host your second brain and [digital garden](https://jzhao.xyz/posts/digital-gard
|
||||||
## Get Started
|
## Get Started
|
||||||
> 📚 [Setup your own digital garden using Quartz](notes/setup.md)
|
> 📚 [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
|
||||||
- 🚧 [Troubleshooting and FAQ](notes/troubleshooting.md)
|
- 🚧 [Troubleshooting and FAQ](notes/troubleshooting.md)
|
||||||
|
|
|
@ -15,7 +15,7 @@ Of course, all the files are in Markdown so you could just use your favourite te
|
||||||
### Ignoring Files
|
### Ignoring Files
|
||||||
Only want to publish a subset of all of your notes? Don't worry, Quartz makes this a simple two-step process.
|
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
|
### Folder Structure
|
||||||
Here's a rough overview of what's what.
|
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
|
### 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
|
```markdown
|
||||||
---
|
---
|
||||||
|
@ -45,7 +45,7 @@ Rest of your content here...
|
||||||
## Previewing Changes
|
## 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*.
|
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.
|
For those who like to live life more on the edge, viewing the garden through Obsidian gets you pretty close to the real thing.
|
||||||
|
|
||||||
|
|
|
@ -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
|
> “[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
|
||||||
|
|
|
@ -4,7 +4,7 @@ title: "Troubleshooting and FAQ"
|
||||||
|
|
||||||
## Common Pitfalls
|
## Common Pitfalls
|
||||||
### Can I publish only a subset of my pages?
|
### 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?
|
### 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).
|
Yes! All built files can be found under `/public` in the `master` branch. More details under [hosting](notes/hosting.md).
|
||||||
|
|
|
@ -185,8 +185,8 @@
|
||||||
return [...results[0].result]
|
return [...results[0].result]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const allIds = [...getByField('title'), ...getByField('content')]
|
const allIds = new Set([...getByField('title'), ...getByField('content')])
|
||||||
const finalResults = allIds.map(fetch)
|
const finalResults = [...allIds].map(fetch)
|
||||||
|
|
||||||
// display
|
// display
|
||||||
if (finalResults.length === 0) {
|
if (finalResults.length === 0) {
|
||||||
|
|
Loading…
Reference in a new issue