![]() Unlike raw HTML, you don’t have to write opening and closing tags.Īlso, since Middleman is built in Ruby, it’s easy for me to understand how everything works.įinally, now that you understand the reasons for a static site portfolio, it’s now time to get started constructing one. Personally, I like Haml because it’s easier to read as a coder and it’s easier to write. Middleman gives you those capabilities as well as the option to use popular templating languages such as Haml. Consequently, partials save you quite a bit of time. Now, since I decided to use HTML markup (especially the Twitter Bootstrap-like markup I was using), it would have been nice to use things from Ruby on Rails like “partials”.įor those of you who don’t know what those are, partials are basically templates that cut down on repetitive code in HTML pages.įor example, you may have a “menu partial” and that way you update one menu template instead of the same menu template across your portfolio’s site pages. Since I’m not a WordPress developer, modifying HTML/CSS markup would be much easier than trying to hunt for and/or customize a WordPress plugin to do it for me.Īlso, static sites load faster than their dynamic counterparts. Plus, I wanted a nice layout that I could easily customize. Why have a static site?įurthermore, I wanted a place where I could easily update descriptions of projects I had worked on. After a bit of research, I realized I really wanted a separate static site. While updating my portfolio as I changed jobs, I realized a WordPress blog was not the best place to post your portfolio. Using Middleman to Construct Your Static Site PortfolioĪs a ruby programmer, one of the best tools I’ve found to roll your own static site is Middleman. But first, I need to tell you about Middleman. That’s why this article will show you how to make your own static site portfolio using a custom domain on GitHub pages. In the interim, Github started allowing developers to host static websites via Github pages.Įssentially, Github pages is a free static site hosting service that will let you host your personal, organization or project pages a la a Github repository. For a long time, I used Hostgator to run my WordPress blog and used that as a double for a portfolio site.īut eventually, I started migrating to Digital Ocean and was paying Hostgator to do….nothing. (See the Guide for Release Managing for a notable time period where this won't be true.)ĭocumentation changes will be reviewed as they make their way into the main branch updates to the asf-site branch are handled without further review.Beginner’s Guide to Using Github Pages With Your Own Custom Domain for Your PortfolioĪs a web developer, I’m sure you appreciate the importance of an online portfolio. Publishing the website should be possible from the HEAD of the main branch under most circumstances. $ # Try to reference the commit hash on main that this publication assures we include $ git commit -m "git hash 6c6f6f6b696e6720746f6f20686172642c20796f" $ # Finally publish $ git push origin asf-site $ # check the set of differences $ git add -p $ # Verify any new files are also added $ git status $ rsync -quiet -checksum -inplace -recursive yetus-dist/target/apache-yetus- $ -SNAPSHOT-site/. $ git clean -xdf $ mvn -batch-mode install $ mvn -batch-mode site site:stage ![]() $ # Now build in the normal yetus check out $ cd yetus $ git clone -single-branch -branch asf-site yetus-site ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |