We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Build a Static Site Generator in Python

Build a static site generator from scratch, similar to Jekyll, Hugo, or Gatsby in Python.

What will you learn?

Ever wondered how SEO and performance-optimized static site generators like Hugo work? In this guided project you'll build your own from scratch using Python. You'll put a lot of your learnings from Object-Oriented Programming and Functional Programming to use in a tangible web project. This project isn't for the faint of heart, but it's well worth the effort. You'll come away with a deeper understanding of static content management.

Chapter List

1
Static Sites
Learn about what a static site is, and start building the functionality necessary to process and move static HTML and Markdown files.
2
Nodes
Build the core HTML generation logic that will power your static site generator. Use recursion and OOP to build an easily understandable and maintainable system.
3
Inline
Build the inline markdown parsing logic, and the logic to generate inline HTML elements.
4
Blocks
Handle entire blocks of markdown, and generate the HTML nodes that represent them.
5
Website
Put the entire static site generator together, and publish your first website.

Join 14,047 students in the Build a Static Site Generator in Python course

Read reviews of their learning experiences

A useful course, regardless of whether you're just starting out or have years under your belt!

(5/5)
Klaus Horn profile image

Klaus Horn

Finland

End-to-end project. Holds your hand just enough, but lets you struggle through some details to help real learning happen. (Boots helps too!)

(5/5)
Todd Blackmon profile image

Todd Blackmon

United States

By far the best project I've done on the site so far. Produces a useful product and you learn the skills to modify it as you like once the course is finished.

(5/5)
Spencer  profile image

Spencer

United States

kind of hard tbh, I recommend sticking with it once you start. I took a week long break and forgot a lot of what I did

(3/5)
Robert Milea profile image

Robert Milea

Romania

An enjoyable project and I'll probably get to use it.

(5/5)
simo  profile image

simo

Malta

I learned a lot about how websites work going through this course.

(5/5)
Thomas Lett profile image

Thomas Lett

United States

its pretty good you learn stuff

(3/5)
Yah oo profile image

Yah oo

United States

Challenging - even frustrating at times - but a brilliant course that doesn't massively hold your hand. With sufficient resilience, consistency and referencing online material and AI, you'll get there and learn a lot along the way. While I also enjoyed the other guided courses up to this point in the pathway, this is the first one I have completed with a feeling of general pride in myself. Highly recommended.

(5/5)
Gibran Dar profile image

Gibran Dar

London, UK

100% recommend

(5/5)
Aman Dwivedi profile image

Aman Dwivedi

mumbai, india

Showing 1-9 of 354

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes! It's free to create an account and start learning. You'll get all the immersive and interactive features for free for a few chapters. After that, if you still haven't paid for a membership, you'll be in read-only (content only) mode.