Digital Garden overhaul with Obsidian Plugin
2024-04-25
I figured out that it was quite easy to duplicate my Hugo website repo into a new one with a more suitable/descriptive name, freeing up my digital garden repo for something new. I just had to make sure I didn't mess up the submodules into the GitHub pages repo, but I figured it all out and my website isn't broken so that's good.
In terms of the actual overhaul on my digital garden, I'm pretty close to just Making my own Obsidian Theme in order for the website to work exactly how I want it, but for now, I am relatively satisfied with all the tweaking I've done to the CSS. I really want to learn how to make Nunjucks scripts, so I can add different things to each note, but I have a small problem in that I don't uhhhh even know how to write JavaScript.
It currently runs with Minimal (Obsidian Theme), using colours taken from Primary (Obsidian Theme). The main issue is that I can't figure, based on the website set-up, how to make the 404 pages take on my custom CSS attributes, as it just takes them from the Obsidian theme you've decided to use, and the 404 page doesn't even load up the custom CSS.
A weird workaround
There seems to be some error where the dg-home
property thinks that your homepage note is updated every time you open the publication centre. Additionally, every time you update the note and republish it, a script adds the gardenEntry
tag, in order to signal to the website to give the note the home contents appearance. To fix this, I simply changed the note to have the gardenEntry
tag and removed the dg-home
property.
Okay so, Apparently, the Obsidian Digital Garden Plugin plugin exists. Which means I'm gonna change my Hugo website to be more like a personal website and see if I can run the the Digital garden website off a sub-link from the main website. So, the base URL for the digital garden being michaelacheong.com/notes
, or something like that.
However, a couple of issues.
- My current
digital-garden
repo contains the Hugo site and its code, as well as the subfolderpublic
which links to myvitamickey.github.io
GitHub pages repo. - I would like to replace the
digital-garden
repo with an actual digital garden. - I would like to move the Hugo code onto a repo called
hugo-site
or something to that effect. This includes the fact that...
1. Everything fromdigital-garden
needs to move to the new repo
2. The submodule connected topublic
needs to move cleanly as well. - My current existing Obsidian vault needs to be force pushed onto my now renamed digital-garden repo for my private notes
- https://stackoverflow.com/questions/51275223/how-to-overwrite-remote-git-repository-with-a-new-local-project
1. "In case some other git noob comes around, these are the exact steps I took: In the new local repository:git init
,git add --all
,git remote add origin <remote url>
,git commit -m "some comment"
, `git push -f origin main"
To do:
-
- [ ]