Auto-update blog content from Obsidian: 2025-05-07 21:14:25
All checks were successful
Deploy / Deploy (push) Successful in 3s

This commit is contained in:
Gitea Actions 2025-05-07 21:14:25 +00:00
parent a0ea30854b
commit 69f85e051a

View File

@ -164,7 +164,7 @@ jobs:
Obsidian uses wiki-style links for images, like `![[image name.png]]`, which isn't compatible with Hugo out of the box. Here's how I automated a workaround in a Gitea Actions workflow: Obsidian uses wiki-style links for images, like `![[image name.png]]`, which isn't compatible with Hugo out of the box. Here's how I automated a workaround in a Gitea Actions workflow:
- I find all used image references in `.md` files. - I find all used image references in `.md` files.
- For each referenced image, I update the link in relevant `.md` files like `![image name](img/image_name.png)`. - For each referenced image, I update the link in relevant `.md` files like `![image name](img/image_name.png)`.
- I then copy those used images to the blog's assets directory while replacing white-spaces by underscores. - I then copy those used images to the blog's static directory while replacing white-spaces by underscores.
### Step 4: Gitea Actions for Blog Repository ### Step 4: Gitea Actions for Blog Repository