Merge branch '2.1' into site-2.1

This commit is contained in:
Brandon Mathis 2012-05-22 11:29:15 -05:00
commit 61a4169593
2 changed files with 12 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<div class="entry-content">{{ content }}</div>
{% if index %}
<footer>
{% if site.disqus_short_name and page.comments != false and site.disqus_show_comment_count == true %}
{% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
<p><a class="comments-link" href="{% if index %}{{ permalink }}{% endif %}#disqus_thread">View comments &raquo;</a></p>
{% endif %}
{% if excerpted != 'false' %}

View File

@ -58,7 +58,17 @@ module Jekyll
else
partial = Liquid::Template.parse(contents)
context.stack do
partial.render(context)
contents = partial.render(context)
site = context.registers[:site]
ext = File.extname(@file)
converter = site.converters.find { |c| c.matches(ext) }
if converter.nil?
contents
else
converter.convert(contents)
end
end
end
end