Skip to content

Commit c808576

Browse files
committed
set default encoding to utf-8
1 parent 20d1840 commit c808576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll-gist/gist_tag.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Gist
99
class GistTag < Liquid::Tag
1010

1111
def render(context)
12-
@encoding = context.registers[:site].config['encoding']
12+
@encoding = context.registers[:site].config['encoding'] || 'utf-8'
1313
if tag_contents = determine_arguments(@markup.strip)
1414
gist_id, filename = tag_contents[0], tag_contents[1]
1515
if context.has_key?(gist_id)

0 commit comments

Comments
 (0)