Skip to content

eeii/feed2hugo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fork https://code.cerenit.fr/nsteinmetz/feed2hugo Migration from RSS/Atom Feed to Hugo (gohugo.io)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%