We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6602491 + 7a55460 commit 860b8b9Copy full SHA for 860b8b9
lib/jekyll-seo-tag.rb
@@ -13,9 +13,6 @@ def render(context)
13
@context = context
14
output = Liquid::Template.parse(template_contents).render!(payload, info)
15
16
- # Minify
17
- output.gsub!(/[\s]{2,}/, "\n")
18
-
19
# Encode smart quotes. See https://github.com/benbalter/jekyll-seo-tag/pull/6
20
output.gsub!(HTML_ESCAPE_REGEX, HTML_ESCAPE)
21
@@ -39,7 +36,7 @@ def info
39
36
end
40
37
41
38
def template_contents
42
- @template_contents ||= File.read(template_path)
+ @template_contents ||= File.read(template_path).gsub(/(>\n|[%}]})\s+(<|{[{%])/,'\1\2').chomp
43
44
45
def template_path
0 commit comments