<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 <title>Danny Joris</title>
 <link href="http://dannyjoris.ca/atom.xml" rel="self"/>
 <link href="http://dannyjoris.ca/"/>
 <updated>2023-03-09T15:23:45+00:00</updated>
 <id>http://dannyjoris.ca/</id>
 <author>
   <name>Danny Joris</name>
   <email>mail@dannyjoris.ca</email>
 </author>
 
 <entry>
   <title>Site redesign and moving to Jekyll</title>
   <link href="http://dannyjoris.ca/blog/2013/02/09/site-redesign-and-moving-to-jekyll"/>
   <updated>2013-02-09T00:00:00+00:00</updated>
   <id>http://dannyjoris.ca/blog/2013/02/09/site-redesign-and-moving-to-jekyll</id>
   <content type="html">&lt;p&gt;When I decided to redesign my web site a while ago I wanted to scale down on
size, content and maintanance. The old site was 3 years old and in the meanwhile
lots of new projects and services had come out of the woodworks. Seeing
&lt;a href=&quot;http://developmentseed.org/&quot;&gt;Developmentseed&lt;/a&gt; move away completely from Drupal
to Jekyll for their sites was a real eye opener. While Drupal became more and
more complex the idea of building static sites with limited functionality seemed
very refreshing.&lt;/p&gt;

&lt;h3 id=&quot;reasons-for-redesigning-my-web-site&quot;&gt;Reasons for redesigning my web site&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;To scale down and remove clutter: one page that shows what I do and another listing blog posts is all I need.&lt;/li&gt;
  &lt;li&gt;To focus on a different audience with an updated skill set.&lt;/li&gt;
  &lt;li&gt;To improve the design and make better use of space by breaking out of the 960 grid.&lt;/li&gt;
  &lt;li&gt;To make the site responsive for easy access from any device.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;reasons-for-moving-to-jekyll&quot;&gt;Reasons for moving to Jekyll&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Fits in the idea of scaling down on functionality and clutter.&lt;/li&gt;
  &lt;li&gt;Simple and hassle free hosting with Github pages (if you’re familiar with git).&lt;/li&gt;
  &lt;li&gt;My old site was still running drupal 6 and required regular module updating while
the functionality on the site was limited and I wasn’t even using it often.&lt;/li&gt;
  &lt;li&gt;This site serves just static html, thus no performance is lost on rendering logic.&lt;/li&gt;
  &lt;li&gt;It’s refreshing not needing to set up a database, install Drupal, add modules or update them over time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;some-things-i-learned-while-rewriting-the-site&quot;&gt;Some things I learned while rewriting the site&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Used Jekyll and Liquid for the first time. This was also the first time I used a proper templating system. It’s very similar to Twig, so it was a good way to get my feet wet for templating in Drupal 8.&lt;/li&gt;
  &lt;li&gt;It forced me to refresh my memory about small things Drupal provides out of
the box, such as meta tags, sitemap.xml, site structure, certain markup, etc.&lt;/li&gt;
  &lt;li&gt;Creating a Jekyll site for the first time still required quite a bit of work.
Most of it was learning Jekyll &amp;amp; Liquid and planning the general architecture.&lt;/li&gt;
  &lt;li&gt;Used &lt;a href=&quot;http://zengrids.com/&quot;&gt;Zen Grids&lt;/a&gt; in a non-Drupal project, which turned
out to work excellent. Zen Grids was created by
&lt;a href=&quot;http://john.albin.net/&quot;&gt;John Albin Wilkins&lt;/a&gt;, who is the maintainer of the
popular Drupal &lt;a href=&quot;http://drupal.org/project/zen&quot;&gt;Zen&lt;/a&gt; base theme. Zen Grids is a
key component of the Zen theme, but is intended to be usable on any project.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.woothemes.com/flexslider/&quot;&gt;Flexslider&lt;/a&gt; is a responsive jQuery slideshow plugin that works just great.&lt;/li&gt;
  &lt;li&gt;Applied a nice solution for elements that are hidden with jQuery using
&lt;strong&gt;display: none&lt;/strong&gt;; . In my case it was the size of Flexslider that would not
adapt after changing the viewport while hidden. This &lt;a href=&quot;http://docs.jquery.com/UI/API/1.8/Tabs#...my_slider.2C_Google_Map.2C_sIFR_etc._not_work_when_placed_in_a_hidden_.28inactive.29_tab.3F&quot;&gt;small tip in the
jQuery docs&lt;/a&gt;
helped me fix that.&lt;/li&gt;
  &lt;li&gt;Don’t use .load() to check if an image is loaded. Images could be cached.
I used &lt;a href=&quot;https://github.com/desandro/imagesloaded&quot;&gt;imagesLoaded&lt;/a&gt; for this task.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I really enjoyed working with Jekyll &amp;amp; Liquid and look forward playing with it
even more. Maybe digging deeper in the plugin structure and such. I didn’t use
&lt;a href=&quot;http://octopress.org/&quot;&gt;Octopress&lt;/a&gt; or
&lt;a href=&quot;http://jekyllbootstrap.com/&quot;&gt;Jekyll bootstrap&lt;/a&gt; - though they might be
interesting - because the whole point was to keep things as simple as possible
and not to have too much functionality out of
the box.&lt;/p&gt;

&lt;p&gt;Having the code of your site publicly hosted on a github repo is interesting.
While it can be made private, I kind of like the level of transparency it comes
with being publicly accessable. In a true open source spirit others can see how
things are implemented (or see my mistakes for that matter). People can also do
pull requests to improve both the site and content. I don’t expect the latter to
happen, but it is possible.&lt;/p&gt;

&lt;p&gt;Drupal is still my application of choice for web development, but there are some
use cases where a static site generator might be a great alternative.&lt;/p&gt;

&lt;h3 id=&quot;further-reading&quot;&gt;Further reading&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Jekyll: &lt;a href=&quot;https://github.com/mojombo/jekyll&quot;&gt;Github repo and wiki&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Developmentseed: &lt;a href=&quot;http://developmentseed.org/blog/2011/09/09/jekyll-github-pages/&quot;&gt;Using Jekyll and GitHub Pages for our Site&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Developmentseed: &lt;a href=&quot;http://developmentseed.org/blog/2012/07/27/build-cms-free-websites/&quot;&gt;How We Build CMS Free Websites&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Nettuts+: &lt;a href=&quot;http://net.tutsplus.com/tutorials/other/building-static-sites-with-jekyll/&quot;&gt;Building Static Sites with Jekyll&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Tom MacWright: &lt;a href=&quot;http://macwright.org/2013/01/08/thinking-static.html&quot;&gt;Thinking Static&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Tom MacWright: &lt;a href=&quot;http://macwright.org/2012/11/14/indexing-searching-big-static-data.html&quot;&gt;Indexing and Searching Big Static Data&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content>
 </entry>
 
</feed>