==================
== beto's notes ==
==================

Sharing my dev log and notes from Obsidian

After I had to do some troubleshooting yesterday to get GUI applications working from SSH using WSL2 with X Forwarding, I decided to start publishing some of my “dev notes” from my Obsidian vault.

Inspired by other people on the internet, I’ll also be sharing a more frequent “log” of the technical (and maybe not so) things I’m constantly working on.

To do this I’ll be using hugo as SSG, with a script (leveraging) other tools, that so far looks something like this.

 1#! /bin/bash
 2VAULT_PATH="/vault/path"
 3DEST_PATH="$HOME/hugo-site-path"
 4FLAGS="--only-tags published --frontmatter always --start-at"
 5
 6set -x
 7cd $DEST_PATH
 8obsidian-export $VAULT_PATH $FLAGS $VAULT_PATH/07\ Wiki $DEST_PATH/content &&
 9hugo convert toTOML --logLevel debug --unsafe
10# required to fix some footnotes issues
11find . -type f -name "*.md" -exec sed -i -e 's/^[ \t]*\(\[^[0-9]]:.*$\)/\1/' {} \;

Along with Obsidian’s Templater plugin and obsidian-export I hope this becomes a reliable way to share my knowledge in a short-form way.