Skip to content


"A flexible and powerful static content management system for building complex and beautiful websites out of flat files" -

Deploying a github user site with gh-pages

Github user sites like must be served from the master branch. This means lektor must live in a feature branch. Create a feature branch, then go into the github repo settings and protect that branch. When you do a lektor deploy it will destroy all content in master and replace it with the static site. To make this deployment match a custom domain name, set up your whatever.lektorproject with something like the following configs:

name = github
enabled = yes
default = yes
target = ghpages://danielhoherd/