what am I even doing?

My goal here is to just write new website entries for this site in Obsidian. I just stumbled upon this blog-post of networkchuck, a content creator that sparked my interest to be more into trying out “more technical stuff” on my own.

The problem here, at least for me, was that I already had started to build my website in a more complicated way before. I just uploaded the files manually to the GitHub repository manually. Painful and probably the reason I didn’t write stuff basically at all. But I was already building with hugo and using GitHub.


what I am doing!

building the file structure accordingly:

So now I had to integrate the instructions into my own existing file structure etc. Turns out: not hard at all! I just had to: - build a corresponding file tree for the contents in Obsidian, -move the files from the folders in the /hugo/websitefolder folder to the one for Obsidian, - and perform rsync -av --delete "sourcepath" "destinationpath", which will be automated at a later point.

setting up the image upload:

In order to setup the pictures, I had to edit the python script of networkchuck to my file paths. But since I am using a different structure and have multiple directories, I had to come up with a solution: - duplicate the script - and set the path for each directory So now I have a script for each folder. I don’t know if this is the best solution, but for now it is working flawlessly!

Here is a test picture: !Image Description You can also check here, in the other category, to see that it indeed does work :)

doing the GitHub thing:

As I have said earlier, pushing to git is something I haven’t done (in the right way) yet. So up to new territories then, I guess…

After I found out how to make my hugo folder my repository, thanks to YouTube and the GitHub documentation, it turned out to be pretty easy. And thanks to the script of networkchuck, which I edited very slightly, now everything worked with the push of a button!

BUT then I had to figure out, how to build a hugo site from the whole hugo repository I just had put up to GitHub. My earlier approach was to just upload the “public” folder manually and set up the GitHub-pages from the root-folder. That wasn’t working anymore now. Thankfully there is a GitHub-action for that. And after yanking that code into my repository it was working perfectly! :)


and now?

Now I should have an easy way to publish new stuff on here. That’s awesome! If you want you can check out the repository on my GitHub and make fun of my files :D.

Now I can set new goals and projects. The first ones? Probably to optimize the script and then the style.css . But for now I am happy.