mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-10-31 23:35:00 -04:00
Merge branch '2.1' into site-2.1
This commit is contained in:
commit
61a4169593
@ -12,7 +12,7 @@
|
|||||||
<div class="entry-content">{{ content }}</div>
|
<div class="entry-content">{{ content }}</div>
|
||||||
{% if index %}
|
{% if index %}
|
||||||
<footer>
|
<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 »</a></p>
|
<p><a class="comments-link" href="{% if index %}{{ permalink }}{% endif %}#disqus_thread">View comments »</a></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if excerpted != 'false' %}
|
{% if excerpted != 'false' %}
|
||||||
|
@ -58,7 +58,17 @@ module Jekyll
|
|||||||
else
|
else
|
||||||
partial = Liquid::Template.parse(contents)
|
partial = Liquid::Template.parse(contents)
|
||||||
context.stack do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user