Skip to content

Commit

Permalink
fix: rename cover function (#64)
Browse files Browse the repository at this point in the history
Rename to avoid conflict with other cover() functions, for example as found in ZeroOne theme
  • Loading branch information
vb-git authored Jan 8, 2024
1 parent 23c8055 commit a8e5b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/FeedMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
return $this->podcasterAtomLink()->or($this->url());
},

'cover' => function () {
'feedCover' => function () {
if ($this->podcasterCover()->isEmpty()) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion templates/podcasterfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<?php snippet(
'podcaster-feed-cover',
[
'imageUrl' => $page->cover(),
'imageUrl' => $page->feedCover(),
'title' => $page->podcasterTitle(),
'link' => $page->podcasterLink(),
]
Expand Down

0 comments on commit a8e5b81

Please sign in to comment.