nodewee / o2h

Obsidian notes to Hugo posts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

O2H

🌐 English | 中文

Convert Obsidian notes to Hugo posts

Features

  • Links

    • Convert internal links (notes,attachments and heading/anchor) automatically
    • Using slug format, get slug from front-matter or convert from file name
    • Alert for invalid internal links
    • Convert video attachment (.mp4, .webm, .ogg) links to HTML video tags
  • Folders

    • Convert all folders in the notes library by default (automatically exclude template folders)
    • One or more folders can be specified
    • Option to empty target folder (keep "_index.*" files)
  • Date/time of publication

    • First look for the specified value from the front-matter, if not found
    • Use the creation time and last modified time of the notes file (.md)

Usage

git clone https://github.com/nodewee/o2h.git
cd o2h
pdm install
# or pip install -r requirements.txt
python . --help

About

Obsidian notes to Hugo posts

License:MIT License


Languages

Language:Python 100.0%