Skip to content
/ ics2hugo Public
forked from tomluvoe/ics2hugo

Convert an ICS calendar to Hugo markdown.

Notifications You must be signed in to change notification settings

tohn/ics2hugo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ics2hugo

This will convert any ics calendar url into an events.md file which can be imported into a Hugo website. It will contain only upcoming events.

There are two versions: Bash and Python.

Bash

This requires icsp.

Example:

bash ics2hugo.sh -u "https://example.org/calendar.ics" -p ~/path/to/hugo/content/calendar

Python

Example:

python ics2hugo.py --url "https://example.org/calendar.ics" --path ~/path/to/hugo/content/calendar

If you want all events in separate markdown files (like in the origin repository), just remove the # at the beginning of some lines in ics2hugo.py.

Upgrade python and dependencies

pyenv install --list
pyenv install $latest_version
pip install -r requirements.txt
cat requirements.txt | cut -f1 -d= | xargs pip install -U
pip freeze >requirements.txt

About

Convert an ICS calendar to Hugo markdown.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 72.3%
  • Shell 27.7%