aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/category_generator.rb3
-rw-r--r--plugins/gist_tag.rb8
-rw-r--r--plugins/jsfiddle.rb2
3 files changed, 8 insertions, 5 deletions
diff --git a/plugins/category_generator.rb b/plugins/category_generator.rb
index a49c4296..c55d62f4 100644
--- a/plugins/category_generator.rb
+++ b/plugins/category_generator.rb
@@ -119,7 +119,7 @@ module Jekyll
===============================================
Error for category_generator.rb plugin
-----------------------------------------------
- No 'category_index.hmtl' in source/_layouts/
+ No 'category_index.html' in source/_layouts/
Perhaps you haven't installed a theme yet.
===============================================
@@ -191,4 +191,3 @@ ERR
end
end
-
diff --git a/plugins/gist_tag.rb b/plugins/gist_tag.rb
index 0828d270..9bdd14dc 100644
--- a/plugins/gist_tag.rb
+++ b/plugins/gist_tag.rb
@@ -23,11 +23,15 @@ module Jekyll
def render(context)
if parts = @text.match(/([a-zA-Z\d]*) (.*)/)
gist, file = parts[1].strip, parts[2].strip
+ else
+ gist, file = @text.strip, ""
+ end
+ if gist.empty?
+ ""
+ else
script_url = script_url_for gist, file
code = get_cached_gist(gist, file) || get_gist_from_web(gist, file)
html_output_for script_url, code
- else
- ""
end
end
diff --git a/plugins/jsfiddle.rb b/plugins/jsfiddle.rb
index 0046f9b5..815910e2 100644
--- a/plugins/jsfiddle.rb
+++ b/plugins/jsfiddle.rb
@@ -29,7 +29,7 @@ module Jekyll
def render(context)
if @fiddle
- "<iframe style=\"width: #{@width}; height: #{@height}\" src=\"http://jsfiddle.net/#{@fiddle}/embedded/#{@sequence}/#{@skin}/\"></iframe>"
+ "<iframe style=\"width: #{@width}; height: #{@height}\" frameborder=\"0\" seamless=\"seamless\" src=\"http://jsfiddle.net/#{@fiddle}/embedded/#{@sequence}/#{@skin}/\"></iframe>"
else
"Error processing input, expected syntax: {% jsfiddle shorttag [tabs] [skin] [height] [width] %}"
end