Setting up your own digital garden with Jekyll
Eager to try the demo of the template? đ digital-garden-jekyll-template.netlify.app
Digital gardens and public note-taking spaces are all the rage these days, as theyâre a great way to foster an environment where ideas mesh together and others can take inspiration from. You can set up a digital garden of your own in a few minutes, and have your own personal corner of the Internet where youâll seed and grow ideas.
If youâre familiar with Markdown and/or HTML, youâll be right at home, as thatâs how your notes will be formatted.
The end result will look similar to this:
If you happen to use Obsidian to work on your notes, youâll likely want to open this guide from Mike and read through it in parallel with this one.
Alternatively, if you use Roam and would like to automatically convert your Roam Research backup to a garden using this template, take a look at this repository.
Without further ado, letâs get started!
Instructions
0. Set up prerequisites
For this tutorial, weâll need to install a few things on your machine (you may have some of these already). Following the instructions on each website to install them.
Youâll also need to create accounts on the following services:
- GitHub (to store your digital garden files)
- Netlify (to serve your digital garden website to the world)
Once everything is set up, letâs start creating your own digital garden.
1. Create a fork of the template repository
To simplify things, I provide the template shown in the image above to get started. You can always tweak this template to your taste later.
Visit the GitHub page for my template repository (maximevaillancourt/digital-garden-jekyll-template
), and fork it to your account using the Fork button:
Once the forking process is complete, you should have a fork (essentially a copy) of my template in your own GitHub account. On the GitHub page for your repository, click on the green âClone or downloadâ button, and copy the URL: weâll need it for the next step.
2. Clone your repository locally
Next, we want to download the files from your GitHub repository onto your local machine. To do this, replace <YOUR_COPIED_URL_HERE>
in the command below with the URL you copied in the previous step, then execute this command:
$ git clone <YOUR_COPIED_URL_HERE> my-digital-garden
As a reference point, this is how it looks like for me (the difference is likely just the GitHub username):
$ git clone [email protected]:maximevaillancourt/digital-garden-jekyll-template.git my-digital-garden
Then, navigate into the directory that was just created:
$ cd my-digital-garden
3. Test out the site locally
Sweet! You now have your repositoryâs source code on your machine. Within the my-digital-garden
directory, run the following command to install the necessary dependencies like Jekyll:
$ bundle
Once thatâs done, ask Jekyll to start serving the site locally:
$ bundle exec jekyll serve
Then, open up http://localhost:4000
in your browser.
If everythingâs done correctly, you should now see the home page of your digital garden. đ
Keep in mind that this site is only available locally (notice the localhost
part of the URL), so if we want it to be available on the Internet for everyone to enjoy, we need to deploy it to the Internet: weâll use Netlify for that in the next step.
4. Connect your GitHub repository to Netlify
Netlify lets you automatically deploy your digital garden on to the Internet when you update your GitHub repository. To do this, we need to connect your GitHub repository to Netlify:
- Log in to Netlify
- Once logged in, click the âNew site from Gitâ button
- On the next page, select GitHub as the continuous deployment provider (you may need to authorize the connection, in which case, approve it)
- On the next page, select your digital garden repository from the list
- On the next page, keep the default settings, and click on âDeploy siteâ.
That was easy! Weâre almost done.
Wait a couple of minutes for the initial deploy to complete.
Once thatâs done, your digital garden should be available on the Internet via a generic Netlify URL, which you can change to a custom domain later if youâd like.
Now the cool thing is this: whenever you push an update to your GitHub repository, Netlify will automatically deploy your updates to the Internet.
5. Start tending to your digital garden
At this point, you can start updating the files on your machine (in the my-digital-garden
folder) to change your digital garden to your liking: update the copy, add some notes, tweak the layout, customize the colors, etc.
Once you have something youâre happy with, push your changes to your GitHub repository with the following commands:
$ git add --all
$ git commit -m 'Update content'
$ git push origin master
If that command succeeds and the rest of the tutorial was done correctly, in a couple of minutes, you should see your changes live on your Netlify website. đ
And weâre done! You now have your own digital garden. Take care of your mind and the rest will follow. đ