Skip to content
/ poogo Public

💩 Hugo's stinky step-son who won't stop leaving his Markdown on your browser! Yuck!

License

Notifications You must be signed in to change notification settings

trevarj/poogo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

POOGO 💩

Hugo's stinky step-son who won't stop leaving his Markdown on your browser! Yuck!

A small static site generator for a simple personal blog that utilizes Github's Markdown to HTML API.

Usage

Bootstrap a blog skeleton:

poogo -b -p <path to blog dir>
# edit config.env file (for RSS support only)

Add a post:

cd <path to blog dir>
poogo -n post1

Generate HTML:

cd <path to blog dir>
poogo -g

Local Dev

Start a webserver in the target dir:

cd test && python -m http.server 8080

Modify Markdown files, then regenerate...

Timestamp Conversion

From Hugo

sed -rn 's/^date: (.*)/\1/p' *.md | xargs -i date -d {} +%s

From Org

sed -rn 's/#\+date: <(.*)>/\1/p' *.org | xargs -i date -d {} +%s

Caveats

  • Github markdown API mangles up unicode chars

About

💩 Hugo's stinky step-son who won't stop leaving his Markdown on your browser! Yuck!

Topics

Resources

License

Stars

Watchers

Forks

Languages