poole/lanyon

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

Actually, not solved afterall.

My page still looks like this:
grafik

Wether I'm serving from gh-pages or master branch. I adjusted the baseurl, repo, and relative links in the config.

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

@stefanbschneider

  1. Delete line
    relative_permalinks: true
  2. 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.

mdo commented

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.

mdo commented

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.