diff --git a/_includes/header.html b/_includes/header.html index 20fc038..9e4c8f7 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -35,7 +35,7 @@ _gaq.push(['_setAccount', '{{ site.analytics }}']); _gaq.push(['_trackPageview']); window.onload = function() { - var headers = {{ site.headers | implode }}; + var headers = ['{{ site.headers | join:"', '" }}']; var header = headers[Math.floor(Math.random() * headers.length)]; document.getElementById('masthead').style.backgroundImage = "url('/asset/header/" + header + ".jpg')"; diff --git a/_plugins/implode.rb b/_plugins/implode.rb deleted file mode 100644 index 64cbc0b..0000000 --- a/_plugins/implode.rb +++ /dev/null @@ -1,12 +0,0 @@ -# adapted from -# - https://github.com/kenhkelly/kenhkelly.us/blob/master/_plugins/implode.rb - -module Jekyll - module Implode - def implode(text) - "['" + text.join("', '") + "']" - end - end -end - -Liquid::Template.register_filter(Jekyll::Implode) \ No newline at end of file