Skip to content

Lektor

"A flexible and powerful static content management system for building complex and beautiful websites out of flat files" - https://www.getlektor.com

Deploying a github user site with gh-pages

Github user sites like danielhoherd.github.io 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:

[servers.github]
name = github
enabled = yes
default = yes
target = ghpages://danielhoherd/danielhoherd.github.io?cname=danielhoherd.com