Skip to content

pierrejean-coudert/feed2hugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feed2Hugo

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

Used to migrate Dotclear 1.2 and 2 blogs to Hugo.

Forked from https://code.cerenit.fr/nsteinmetz/feed2hugo

Improvements:

  • download all post images
  • store each post & related images in a dedicated directory
  • adapt images src in posts markdown

Requirements

  • Python 3+ (not tested with Python 2)
python3 -m venv .venv 
source ./.venv/bin/activate
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

About

Parse RSS/ATOM feed to generate Hugo blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages