mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 02:16:22 +00:00
fix: incluir el post en la cache
This commit is contained in:
parent
04c0dffb26
commit
b05e0356c1
1 changed files with 2 additions and 3 deletions
|
@ -10,10 +10,9 @@
|
|||
- next if attribute == :draft
|
||||
- next if attribute == inverse
|
||||
- metadata = post[attribute]
|
||||
- type = metadata.type
|
||||
|
||||
- cache [metadata, I18n.locale] do
|
||||
= render "posts/attributes/#{type}",
|
||||
- cache [post, metadata, I18n.locale] do
|
||||
= render "posts/attributes/#{metadata.type}",
|
||||
base: base, post: post, attribute: attribute,
|
||||
metadata: metadata, site: site,
|
||||
dir: dir, locale: locale, autofocus: false
|
||||
|
|
Loading…
Reference in a new issue