<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">

  <title>MassaLabs Blog</title>
  
  <link href="http://massalabs.com/" />
  <updated>2012-02-17T11:00:37-08:00</updated>
  <id>http://massalabs.com/</id>
  <author>
    <name>Sean Massa</name>
    <email>endangeredmassa@gmail.com</email>
  </author>

  
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/MassaLabs" /><feedburner:info uri="massalabs" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><entry>
    <title>Setting up a blog with Jekyll, Github, and dnsimple</title>
    <link href="http://massalabs.com/2012/01/04/how-to-set-up-a-simple-blog-with-jekyll-and-github.html" />
    <updated>2012-01-04T00:00:00-08:00</updated>
    <id>http://tom.preston-werner.com/2012/01/04/how-to-set-up-a-simple-blog-with-jekyll-and-github</id>
    <content type="html">&lt;h1&gt;&lt;a href="/2012/01/04/how-to-set-up-a-simple-blog-with-jekyll-and-github.html"&gt;Setting up a blog with Jekyll, Github, and dnsimple&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;&lt;em&gt;Sean Massa &amp;#8211; 04 Jan 2012&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Step #1: Github&lt;/h2&gt;
&lt;p&gt;This step involves setting up your github repository to properly respond to a domain name.&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Register for &lt;a href="http://github.com"&gt;Github&lt;/a&gt; if you don&amp;#8217;t already have an account.&lt;/li&gt;
	&lt;li&gt;Create a new repository called yourusername.github.com.&lt;/li&gt;
	&lt;li&gt;Clone it locally by running `git clone git@github.com:yourusername/yourusername.github.com.git`&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now we&amp;#8217;re ready to put some content on our blog! If you go to yourusername.github.com, you should now see a page that says you need to setup some content for your blog. If you need more help for this part, take a look at the &lt;a href="http://pages.github.com/"&gt;Github Pages&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h2&gt;Step #2: Jekyll&lt;/h2&gt;
&lt;p&gt;This step involves setting up Jekyll for your static content generation.&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;This requires ruby. Make sure that&amp;#8217;s installed.&lt;/li&gt;
	&lt;li&gt;Install the Jekyll gem with `gem install jekyll`.&lt;/li&gt;
	&lt;li&gt;Find a &lt;a href="https://github.com/krisb/jekyll-template"&gt;template&lt;/a&gt; that you like and clone it. Or, take a look at &lt;a href="https://github.com/mojombo/jekyll/wiki/sites"&gt;an existing site&lt;/a&gt; and copy the structure.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You should now be able to see your content by executing `jekyll &amp;#8212;server &amp;#8212;auto` in your repository directory. The &amp;#8212;auto flag will make the server recompile pages based on files you change. If you need more help with this, take a look at the &lt;a href="https://github.com/mojombo/jekyll"&gt;Jekyll&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h2&gt;Step #3: dnsimple&lt;/h2&gt;
&lt;p&gt;This step involves setting up your domain name to point to your Github Pages blog.&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Go to &lt;a href="https://dnsimple.com/signup"&gt;dnsimple&lt;/a&gt; and register for an account.&lt;/li&gt;
	&lt;li&gt;Find a domain name that is available and register it.&lt;/li&gt;
	&lt;li&gt;View your registered domain and click &amp;#8220;Add services to domain&amp;#8221;.&lt;/li&gt;
	&lt;li&gt;Add the Github Pages service.&lt;/li&gt;
	&lt;li&gt;Once you are back at your domain management page, click the &amp;#8220;Advanced Editor&amp;#8221; button.&lt;/li&gt;
	&lt;li&gt;Edit your &lt;span class="caps"&gt;CNAME&lt;/span&gt; entry to point to yourusername.github.com.&lt;/li&gt;
	&lt;li&gt;Go to your git repository and create a file called &lt;span class="caps"&gt;CNAME&lt;/span&gt; with the content mydomain.com.&lt;/li&gt;
	&lt;li&gt;Push your &lt;span class="caps"&gt;CNAME&lt;/span&gt; change to your git repository.&lt;/li&gt;
	&lt;li&gt;Wait a few seconds.&lt;/li&gt;
	&lt;li&gt;Go to mydomain.com and see if it worked!&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;At this point, your domain should be pointing to your Github Pages content. If not, look at one of the documentation sites I linked above. If this guide was unclear, let me know &lt;a href="mailto:endangeredmassa@gmail.com"&gt;via email&lt;/a&gt; or a comment.&lt;/p&gt;</content>
  </entry>
  

</feed>

