diff options
author | Brandon Mathis <brandon@imathis.com> | 2012-12-18 11:38:37 -0600 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2012-12-18 11:38:37 -0600 |
commit | 72b4e8d5621dbb3c110fe2c273bcc3ac408ffc32 (patch) | |
tree | ca9eab0cc07c9967118b8c0d7348e9958d65092a /plugins | |
parent | 22105bebc9ea53fc177d369a6522d8c4f9d51167 (diff) | |
download | my_new_personal_website-72b4e8d5621dbb3c110fe2c273bcc3ac408ffc32.tar.xz my_new_personal_website-72b4e8d5621dbb3c110fe2c273bcc3ac408ffc32.zip |
gist tag plugin now works with the latest changes GitHub gists and does not fail if you do not specify a filename.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gist_tag.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/gist_tag.rb b/plugins/gist_tag.rb index 74dd3b37..5f590e96 100644 --- a/plugins/gist_tag.rb +++ b/plugins/gist_tag.rb @@ -40,7 +40,9 @@ module Jekyll end def script_url_for(gist_id, filename) - "https://gist.github.com/#{gist_id}.js?file=#{filename}" + url = "https://gist.github.com/#{gist_id}.js" + url = "#{url}?file=#{filename}" unless filename.nil? or filename.empty? + url end def get_gist_url_for(gist, file) |