Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

#1 fix: Update use of nokogiri

Fix rather silly error resulting in outputting DOCTYPE, head, etc.
  • Loading branch information...
commit da4664b63bd7fb62a447cadbb3a226c07f373ec5 1 parent 5e0d23e
Matthew Owen authored August 16, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  _plugins/jekyll_slideshow.rb
2  _plugins/jekyll_slideshow.rb
@@ -44,7 +44,7 @@ def slideshows(content)
44 44
       # go through content using the slideshows filter
45 45
       # for any imgs in <ul>s, change the src to use the new thumbs
46 46
       # set a data attribute referencing the original (fullsize) image
47  
-      doc = Nokogiri::HTML(content)
  47
+      doc = Nokogiri::HTML.fragment(content)
48 48
       doc.css('ul li img').each do |img|
49 49
         url = img['src']
50 50
         newurl = File.dirname(url) << '/' << File.basename(url,

0 notes on commit da4664b

Please sign in to comment.
Something went wrong with that request. Please try again.