-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавляет информер о последнем выпуске подкаста (#339)
* Добавляет информер о последнем выпуске подкаста * Обновляет вёрстку * Упрощает сетку Co-authored-by: Vadim Makeev <[email protected]> --------- Co-authored-by: Vadim Makeev <[email protected]>
- Loading branch information
1 parent
02bd7e5
commit ac723b8
Showing
5 changed files
with
93 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
eleventyComputed: { | ||
lastPodcastEpisode: function(data) { | ||
const { episodes } = data.collections; | ||
|
||
if (!episodes || episodes.length === 0) { | ||
return; | ||
} | ||
|
||
const lastEpisode = episodes.at(-1); | ||
|
||
return lastEpisode; | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.