Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 722 Bytes

File metadata and controls

40 lines (26 loc) · 722 Bytes

Feed2Hugo

Migration tool to migrate from a RSS/Atom Feed to Hugo static site generator.

Requirements

  • Python 3+ (not tested with Python 2)
  • Feedparser
  • Slugify
pip install -r requirements.txt

Usage

Run :

python feed2hugo.py -f <url_or_path_to_feed> -t <hugo_root_path> [-c post]

Specify value for -c only if your content type is not post.

Examples:

python feed2hugo.py -f http://www.domain.com/blog/feed -t /home/user/path/to/hugo

or:

python feed2hugo.py -f http://www.domain.com/blog/feed -t /home/user/path/to/hugo -c blogpost

To do

  • Convert html markup to markdown ?
  • Check if RSS feeds are managed too ; implement it if necessary