mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-29 17:36:21 +00:00
17 lines
489 B
Text
17 lines
489 B
Text
|
-#
|
||
|
@param base [String]
|
||
|
@param locale [String]
|
||
|
@param post [Post]
|
||
|
@param site [Site]
|
||
|
@param dir [String]
|
||
|
- post.attributes.each do |attribute|
|
||
|
- metadata = post[attribute]
|
||
|
- type = metadata.type
|
||
|
|
||
|
- cache [metadata, I18n.locale] do
|
||
|
= render("posts/attributes/#{type}",
|
||
|
base: base, post: post, attribute: attribute,
|
||
|
metadata: metadata, site: site,
|
||
|
dir: dir, locale: locale,
|
||
|
autofocus: (post.attributes.first == attribute))
|