Park, Geon/obsidian-to-hugo로 옵시디언 내용 블로그에 올리기

Created Sat, 22 Mar 2025 16:47:48 +0900 Modified Mon, 07 Apr 2025 17:40:51 +0900
126 Words

python 3.10은 python –version 인식 못한다. 그래서 python 설치함.

https://github.com/devidw/obsidian-to-hugo

Installation

pip install obsidian-to-hugo

usage

It only takes two arguments: The obsidian vault directory (--obsidian-vault-dir) and the hugo content directory (--hugo-content-dir).

python -m obsidian_to_hugo --obsidian-vault-dir=<path> --hugo-content-dir=<path>

It takes care of the following steps:

  • Clears hugo content directory (directory will be deleted and recreated)
  • Copies obsidian vault contents into hugo content directory (.obsidian gets removed immediately after copying
  • Replaces obsidian wiki links ([[wikilink]]) with hugo shortcode links ([wikilink]())
  • Replaces obsidian marks (==important==) with HTML marks (<mark>important</mark>)
  • Want to do more? You can write and register custom filters to dynamically include/exclude content from processing and processors to do whatever you want with the file contents.