Skip to content

Commit 80c7c89

Browse files
author
arnoson
committed
fix: return formatted instead of whole hit
1 parent 4056b1b commit 80c7c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/KirbyLoupeCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function hit(Page $page) {
3434
* Get the formatted attributes from Loupe for the specified page.
3535
*/
3636
public function formatted(Page $page) {
37-
return $this->hitsByUuid[$page->uuid()->toString()];
37+
return $this->hit($page)["_formatted"];
3838
}
3939

4040
public function paginate(...$arguments) {

0 commit comments

Comments
 (0)