Host on GitHub pages
stefanbschneider opened this issue · 8 comments
I'd like to build and host lanyon on GitHub pages. Is that possible? If so how? I couldn't find any documentation on this.
If I just fork and build the pages based on the gh-pages
branch, the resulting page is plain HTML and looks horrible: https://stefanbschneider.github.io/lanyon/
Using master
doesn't work at all and the build fails.
The changes suggested here seem not to apply to the current config in gh-pages
.
Sorry, I found my answer here: https://github.com/poole/poole#usage
Hm, if I run it locally with baseurl = ''
from master
it looks good. But I can't get it to work as GitHub pages project page.
Which branch do I need to use? How do I set baseurl
, url
, repo
?
One way I got it to work, is by copying the public
folder to the root of my repository
- Delete line
Line 5 in ac85a31
- Change ur repo name to "stefanbschnider.github.io", then change
url: "https://stefanbschnider.github.io"
.
@Zju-George That's what I already have: https://github.com/stefanbschneider/lanyon/blob/gh-pages/_config.yml
Why would I set the the repo to stefanbschnider.github.io
? The repo is https://github.com/stefanbschneider/lanyon
. Note: I'm trying to make a project page at stefanbschnider.github.io/lanyon
, not my personal main page.
The stylesheets are missing a baseurl
or equivalent change to always work regardless of deployment. Sorry about that, lemme see what I can clean up.
Latest release should help—make sure your url
is set correctly and Jekyll should cover the rest now. Going to see if I can improve things further in v1.2.0.