The initial setup takes a couple of minutes, but when you're done you'll have a digital garden in which you are in control of every part of it, and can customize it as you see fit. Which is what makes digital gardens so delightful.
- Download and install the community plugin Digital Garden in Obsidian.
- Next, you will need a GitHub account. If you don't have this, create one here.
- You'll also need a Vercel account. You can sign up using your GitHub account here
- Open this repo, and click the blue "Deploy to Vercel" button.
This should open Vercel and create a copy of this repository in your GitHub accont. Give it a fitting name like 'my-digital-garden'. Follow the steps in Vercel to publish your site to the internet.
- Next you need to create an access token to your GitHub Account. This acts as a sort of password so that the plugin can add new notes to your GitHub repository on your behalf. Go to this page while logged in to GitHub. The correct settings should already be applied. (If you don't want to generate this every few months, choose the "No expiration" option.) Click the "Generate token" button, and copy the token you are presented with on the next page.
GitHub has recently launced a new beta feature, where you can target what repositories the token has access to. This is currently the most secure way to use the plugin. See Fine grained access token for details on how to generate this.
Open Obsidian and the settings for "Digital Garden" and fill in your GitHub username, the name of the repo with your notes which you created in step 3, and lastly paste in your token.
Now, let's publish your first note! Create a new note in Obsidian. Now add two new properties to the note.
Properties was added in Obsidian in version 4.1
To add a property to a note, you have several options:
- Use the Add file property command.
- Use the
- Choose Add file property from the More actions menu (three dots icon) or right-clicking the tab.
---at the very beginning of a file.
- A checkbox named
- A checkbox named
Toggle both checkboxes so that they are in the
It should look something like this:
This does two things:
The dg-home setting tells the plugin that this should be your home page or entry into your digital garden. (It only needs to be added to one note, not every note you'll publish).
The dg-publish setting tells the plugin that this note should be published to your digital garden. Notes without this setting will not be published. (In other terms: Every note you publish will need this property.)
- Open your command pallete by pressing CTRL+P on Windows/Linux (CMD+P on Mac) and find the "Digital Garden: Publish Single Note" command. Press enter.
- Go to your site's URL which you should find on Vercel. If nothing shows up yet, wait a minute and refresh. Your note should now appear.
Congratulations, you now have your own personal part of the internet in the form of a digital garden, for free 🎉.
You can now start adding links as you usually would in Obisidan, with double square brackets, to the note that you just published.
Remember to also publish the notes your are linking to as this will not happen automatically. This is by design. You are always in control of what notes you actually want to publish. If you did not publish a linked note, the link will simply lead to a site telling the user that this note does not exist.
If you want to unpublish a note, without deleting the note from your vault, simply uncheck or remove the dg-publish property in the note, open the publication center and click the "Delete notes from garden" button.
Now that you are up and running, you can take a look at the available commands or the various available note settings. Or maybe you want to change your theme?
Next: Commands >