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.