<?xml version='1.0' encoding='utf-8' ?>
<feed xmlns='http://www.w3.org/2005/Atom'>
  <title>Marc-Andre Cournoyer's Awesome Feed</title>
  <link href='/blog.xml' rel='self' />
  <link href='http://macournoyer.com/' />
  <updated>2008-12-08T23:38:38-05:00</updated>
  <author>
    <name>Marc-Andre Cournoyer's</name>
    <email>macournoyer@gmail.com</email>
  </author>
  <id>http://macournoyer.com/</id>
  <entry>
    <title>New Site</title>
    <link href='/blog/2008/12/08/new-site/' />
    <id>tag:macournoyer.com,2008-12-08:1228793230</id>
    <updated>2008-12-08T22:27:10-05:00</updated>
    <content type='html'>
      &lt;p&gt;I was getting tired of my &lt;a href=&quot;http://macournoyer.wordpress.com&quot;&gt;old blog&lt;/a&gt; and wanted to play with CSS and code a lil&amp;#8217; bit. So here&amp;#8217;s the result. I must say, I&amp;#8217;m pretty happy with the result. 3 new tools, I&amp;#8217;ve never (heavily) used before, helped me with that. The code is &lt;a href=&quot;http://github.com/macournoyer/macournoyer.com&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
      
      
      	&lt;h3&gt;Webby&lt;/h3&gt;
      
      
      	&lt;p&gt;First, &lt;a href=&quot;http://webby.rubyforge.org/&quot;&gt;Webby&lt;/a&gt;, a static site generator. I&amp;#8217;m pretty sure blog engines like Typo, Mephisto and the like are gonna disappear pretty quickly from the blogosphere in favour of static sites. Any good blog engine caches all pages, which ends up being a static website generator. You just don&amp;#8217;t need a dynamic app for your blog. Except for the comments, but now there&amp;#8217;s &lt;a href=&quot;http://disqus.com&quot;&gt;Disqus&lt;/a&gt; and &lt;a href=&quot;http://www.intensedebate.com/&quot;&gt;IntenseDebate&lt;/a&gt;.&lt;/p&gt;
      
      
      	&lt;p&gt;The only annoying thing about Webby is that I didn&amp;#8217;t want my URLs to end with &lt;code&gt;.html&lt;/code&gt;. But, that was pretty easy to patch.&lt;/p&gt;
      
      
      
      &lt;div class=&quot;UltraViolet&quot;&gt;&lt;pre class=&quot;twilight&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt; Monkey patch Webby to have nicer URLs.&lt;/span&gt;
      &lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt; Generate each html pages in a &amp;lt;page_name&amp;gt;/index.html file.&lt;/span&gt;
      &lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt; So the URL will look like /&amp;lt;page_name&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;Keyword&quot;&gt;module&lt;/span&gt; &lt;span class=&quot;Entity&quot;&gt;&lt;span class=&quot;EntityInheritedClass&quot;&gt;Webby&lt;span class=&quot;EntityInheritedClass&quot;&gt;::&lt;/span&gt;&lt;/span&gt;Resources&lt;/span&gt;
        &lt;span class=&quot;Keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;Entity&quot;&gt;Page&lt;span class=&quot;EntityInheritedClass&quot;&gt; &lt;span class=&quot;EntityInheritedClass&quot;&gt;&amp;lt;&lt;/span&gt; Resource&lt;/span&gt;&lt;/span&gt;
          &lt;span class=&quot;Keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;Entity&quot;&gt;destination&lt;/span&gt;
            dest &lt;span class=&quot;Keyword&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;super&lt;/span&gt;
            &lt;span class=&quot;Keyword&quot;&gt;if&lt;/span&gt; prettify?
              &lt;span class=&quot;Support&quot;&gt;File&lt;/span&gt;.&lt;span class=&quot;Entity&quot;&gt;join&lt;/span&gt;(&lt;span class=&quot;Support&quot;&gt;File&lt;/span&gt;.&lt;span class=&quot;Entity&quot;&gt;dirname&lt;/span&gt;(dest),
                        &lt;span class=&quot;Support&quot;&gt;File&lt;/span&gt;.&lt;span class=&quot;Entity&quot;&gt;basename&lt;/span&gt;(dest, &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;.*&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;),
                        &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;index.html&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;)
            &lt;span class=&quot;Keyword&quot;&gt;else&lt;/span&gt;
              dest
            &lt;span class=&quot;Keyword&quot;&gt;end&lt;/span&gt;
          &lt;span class=&quot;Keyword&quot;&gt;end&lt;/span&gt;
      
          &lt;span class=&quot;Keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;Entity&quot;&gt;url&lt;/span&gt;
            &lt;span class=&quot;Keyword&quot;&gt;if&lt;/span&gt; prettify?
              &lt;span class=&quot;Keyword&quot;&gt;super&lt;/span&gt;.&lt;span class=&quot;Entity&quot;&gt;gsub&lt;/span&gt;(&lt;span class=&quot;StringRegexp&quot;&gt;&lt;span class=&quot;StringRegexp&quot;&gt;/&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;StringRegexp&quot;&gt;index&lt;span class=&quot;StringRegexpSpecial&quot;&gt;\.&lt;/span&gt;html$&lt;/span&gt;&lt;span class=&quot;StringRegexp&quot;&gt;&lt;span class=&quot;StringRegexp&quot;&gt;/&lt;/span&gt;&lt;/span&gt;, &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;)
            &lt;span class=&quot;Keyword&quot;&gt;else&lt;/span&gt;
              &lt;span class=&quot;Keyword&quot;&gt;super&lt;/span&gt;
            &lt;span class=&quot;Keyword&quot;&gt;end&lt;/span&gt;
          &lt;span class=&quot;Keyword&quot;&gt;end&lt;/span&gt;
      
          &lt;span class=&quot;Keyword&quot;&gt;private&lt;/span&gt;
            &lt;span class=&quot;Keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;Entity&quot;&gt;prettify?&lt;/span&gt;
              filename &lt;span class=&quot;Keyword&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;index&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; extension &lt;span class=&quot;Keyword&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;html&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
            &lt;span class=&quot;Keyword&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;Keyword&quot;&gt;end&lt;/span&gt;
      &lt;span class=&quot;Keyword&quot;&gt;end&lt;/span&gt;
      &lt;/pre&gt;&lt;/div&gt;
      
      
      	&lt;h3&gt;Compass&lt;/h3&gt;
      
      
      	&lt;p&gt;I also wanted to give a second try to Haml and Sass and found &lt;a href=&quot;http://github.com/chriseppstein/compass&quot;&gt;Compass&lt;/a&gt; in the process. It&amp;#8217;s Blueprint CSS without the copy-pasting. Sass makes it easy to reuse some chunks of code, like this one, that makes the footer stick to the bottom.&lt;/p&gt;
      
      
      
      &lt;div class=&quot;UltraViolet&quot;&gt;&lt;pre class=&quot;twilight&quot;&gt;=attach_footer( !footer_height )
        &lt;span class=&quot;CssTagName&quot;&gt;body&lt;/span&gt;
          :margin 0
          :padding 0 0 !footer_height 0
        &lt;span class=&quot;CssId&quot;&gt;&lt;span class=&quot;CssId&quot;&gt;#&lt;/span&gt;footer&lt;/span&gt;
          :position absolute
          :bottom 0
          :left 0
          :width 100%
          :height !footer_height
        &lt;span class=&quot;CssTagName&quot;&gt;body&lt;/span&gt; &amp;gt; &lt;span class=&quot;CssId&quot;&gt;&lt;span class=&quot;CssId&quot;&gt;#&lt;/span&gt;footer&lt;/span&gt;
          :position fixed
        &lt;span class=&quot;CssTagName&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;CssTagName&quot;&gt;html&lt;/span&gt;
          &lt;span class=&quot;CssTagName&quot;&gt;body&lt;/span&gt;
            :overflow hidden
          &lt;span class=&quot;CssId&quot;&gt;&lt;span class=&quot;CssId&quot;&gt;#&lt;/span&gt;content&lt;/span&gt;
            :height 100%
            :overflow auto
      &lt;/pre&gt;&lt;/div&gt;
      
      
      	&lt;p&gt;I also took the time to &lt;a href=&quot;javascript:void(0)&quot; onclick=&quot;$('body').toggleClass('showgrid')&quot;&gt;align everything to the grid&lt;/a&gt;, that was pretty hard for me.&lt;/p&gt;
      
      
      	&lt;p&gt;Finally, I should mentioned that my logo was heavily inspired by &lt;a href=&quot;http://jontangerine.com&quot;&gt;Jon Tan&amp;#8217;s&lt;/a&gt;. I found the idea to make it all with CSS so awesome, I had to (try to) copy it!&lt;/p&gt;
      
      
      	&lt;p&gt;Let me know what you think of my new design/site!&lt;/p&gt;
    </content>
  </entry>
</feed>
