5
0
Fork 0
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:
f 2024-04-19 15:01:16 -03:00
parent 04c0dffb26
commit b05e0356c1
No known key found for this signature in database

View file

@ -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