• Henry Bayuzick, over 5 years ago (edited over 5 years ago )

    As a fellow designer, I thought this would be helpful for those looking to host their projects on Github Pages using a custom domain name. Some of the other resources were a little unclear. Feedback is always appreciated!

    4 points
    • Daniel FoscoDaniel Fosco, over 5 years ago

      Great post Henry! Have you ever got some success with subdomains on Github pages?

      i.e. articles.henrybayuzick.com/host-static-site-github-pages/

      I looked into it a while back, but Github's documentation was really unclear, and so were the StackOverflow responses...

      2 points
      • Bob CechacekBob Cechacek, over 5 years ago

        Google does not understand that subdomains (articles.henrybayuzick.com ) relate to second-level domain (henrybayuzick.com) and penalizes.

        If you want rankings, you want all content you produce on your second-level domain.

        It’s not as easy as simply adding a CNAME if you want to use Github pages only for henrybayuzick.com/articles though.

        0 points
        • Daniel FoscoDaniel Fosco, over 5 years ago

          Oh crap, my Tumblr blog is on a subdomain. Not that I have enough traffic for it to make a difference, but still... looks like it causes a substantial hit.

          0 points
    • Ryan LeaseRyan Lease, over 5 years ago (edited over 5 years ago )

      In your "Remember to keep everything up to date" section, you should really pull the changes on master down to the master branch you keep locally, and then merge those changes into gh-pages. Otherwise, you update gh-pages with remote changes, but your local master branch remains behind where it should be. Something like

      git checkout master git pull origin master git checkout gh-pages git merge master <resolve merge conflicts if necessary> git push origin gh-pages

      Other than that, looks pretty snazzy.

      1 point
  • Drew AlbinsonDrew Albinson, over 5 years ago

    Thanks, Henry! I struggled through this a few months ago, this looks to be a very useful guide! Wish I had seen this earlier!

    1 point