codeforamerica / git-jekyll-preview

Preview your Github-hosted websites before making them live.
http://jekit.codeforamerica.org
29 stars 17 forks source link

Issues with permalinks in stylesheets #8

Open bsmithgall opened 9 years ago

bsmithgall commented 9 years ago

It looks like jekit doesn't like sites configured with a baseurl. For example, jekit doesn't seem to like the pittsburgh-procurement-explorer site (github link and screenshot attached below). The way this project is set up uses gh-pages as an orphan branch checked out directly into the _site directory, if that might cause problems (details on how that works are available here).


screen shot 2015-02-11 at 12 24 11 am

migurski commented 9 years ago

What does this mean: “an orphan branch checked out directly into the _site directory” ?

bsmithgall commented 9 years ago

This is how I create the gh-pages branch (before running jekyll build):

git clone git@github.com:codeforamerica/pittsburgh-procurement-explorer.git -b gh-pages _site

migurski commented 9 years ago

That’s weird. Jekyll is supposed to control the contents of _site, deleting and re-creating them as needed.