2024-04-17 21:09:55 +00:00
|
|
|
-#
|
|
|
|
@param inverse [Symbol]
|
|
|
|
@param base [String]
|
|
|
|
@param locale [String]
|
|
|
|
@param post [Post]
|
|
|
|
@param site [Site]
|
|
|
|
@param dir [String]
|
|
|
|
- post.attributes.each do |attribute|
|
|
|
|
- next if attribute == :date
|
|
|
|
- next if attribute == :draft
|
|
|
|
- next if attribute == inverse
|
2024-05-24 16:23:30 +00:00
|
|
|
|
2024-04-17 21:09:55 +00:00
|
|
|
- metadata = post[attribute]
|
|
|
|
|
2024-04-19 18:01:16 +00:00
|
|
|
- cache [post, metadata, I18n.locale] do
|
|
|
|
= render "posts/attributes/#{metadata.type}",
|
2024-05-24 16:23:30 +00:00
|
|
|
base: base, post: post, attribute: attribute,
|
|
|
|
metadata: metadata, site: site,
|
|
|
|
dir: dir, locale: locale, autofocus: false
|