quartz/content/notes/editing.md

57 lines
2.4 KiB
Markdown
Raw Normal View History

2021-07-18 22:19:58 +03:00
---
title: "Editing Content in Quartz"
---
## Editing
Quartz runs on top of [Hugo](https://gohugo.io/) so all notes are written in [Markdown](https://www.markdownguide.org/getting-started/).
2021-07-19 07:36:15 +03:00
### Obsidian
I *strongly* recommend using [Obsidian](http://obsidian.md/) as a way to edit and grow your digital garden. It comes with a really nice editor and graphical interface to preview all of my local files.
**🔗 [How to link your Obsidian Vault](notes/obsidian.md)**
2021-07-20 01:02:16 +03:00
Of course, all the files are in Markdown so you could just use your favourite text editor of choice.
### 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%20notes.md)
2021-07-19 07:36:15 +03:00
### Folder Structure
Here's a rough overview of what's what.
2021-07-18 22:19:58 +03:00
**All content in your garden can found in the `/content` folder.** To make edits, you can open any of the files and make changes directly and save it. You can organize content into any folder you'd like.
2021-07-19 07:36:15 +03:00
**To edit the main home page, open `/content/_index.md`.** This is the home page which is slightly special. You don't need front matter here!
2021-07-18 23:40:53 +03:00
2021-07-19 07:36:15 +03:00
To create a link between notes in your garden, just create a normal link using Markdown pointing to the document in question. Please note that **all links should be relative to the root `/content` path**.
2021-07-18 22:19:58 +03:00
```markdown
2021-07-19 07:40:55 +03:00
For example, I want to link this current document to `notes/config.md`.
[A link to the config page](notes/config.md)
2021-07-18 23:40:53 +03:00
```
### Front Matter
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:
2021-07-18 23:40:53 +03:00
```markdown
---
title: "Example Title"
---
Rest of your content here...
2021-07-18 22:19:58 +03:00
```
## Previewing Changes
2021-07-20 01:02:16 +03:00
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*.
2021-07-19 07:36:15 +03:00
👀 [Preview Quartz Changes](notes/preview%20changes.md)
2021-07-19 07:36:15 +03:00
2021-07-20 01:02:16 +03:00
For those who like to live life more on the edge, viewing the garden through Obsidian gets you pretty close to the real thing.
2021-07-19 07:36:15 +03:00
2021-07-18 22:19:58 +03:00
## Publishing Changes
Now that you know the basics of managing your digital garden using Quartz, you can publish it to the internet!
🌍 [Hosting Quartz online!](notes/hosting.md)
Having problems? Checkout our [FAQ and Troubleshooting guide](notes/troubleshooting.md).