Deploying to gh-pages

Can someone look at my code and give feedback on how to properly deploy to github pages.

github.com/agsdot/middlemanblog/ for code for master and gh-pages
agsdot.github.io/middlemanblog for the deployed project

I’ve already tried two gems middleman-deploy and middleman-gh-pages. Currently retrying the second one.

Issue, is I’m trying to deploy to agsdot.github.io/middlemanblog . Things show on that page, but when I click on a link to a blog page it goes to agsdot.github.io/blog instead of agsdot.github.io/middlemanblog/blog (redundant I know, but I’ll change project name later). How do I correct the linking structure?

I’m thinking its something to do with the config.rb and site_url or relative_assets, or somewhere where I need to indicate root of the project being agsdot.github.io/middlemanblog.

Thanks for your help!

Jonathan

Solved the issue after getting help from someone at a meetup.

First off, I changed repo to github.com/agsdot/thoughts > agsdot.github.io/thoughts .

On the index.haml page I changed it to
%a{ :href => “#{article.url.sub(/^//,’’)}” }= article.title
%a{ :href => “#{article.url.sub(/^//,’’)}” } →

from being originally
%a{ :href => “#{article.url}” }= article.title
%a{ :href => “#{article.url}” } →

Originally it went to <a href="/blog/"...> instead of <a href="blog/"...> . The first being the root of the site with that backslash, and the second to a relative subdirectory.

Got the slash removed with a regex. Yah, not the most elegant solution, but it works.

Issue closed.