lib/models/post.rb in ignoramos-1.0.0 vs lib/models/post.rb in ignoramos-1.0.1
- old
+ new
@@ -69,21 +69,21 @@
def post_type
@post_type ||= has_external_link? ? :link_post : :self_post
end
def to_liquid
- {
+ @vars.merge({
'html' => html,
'title' => title,
'permalink' => permalink,
'slug' => slug,
'timestamp' => timestamp.iso8601,
'tags' => tags,
'external_link' => external_link,
'post_type' => post_type.to_s,
'title_link' => title_link,
'layout' => @vars['layout']
- }
+ })
end
protected
def normalize_custom_permalink
permalink = @vars['permalink']