implement some feautres in transcript search
This commit is contained in:
9
content/transcripts/transcripts.11tydata.js
Normal file
9
content/transcripts/transcripts.11tydata.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const {extractSeasonEpisode, episodeNumber} = require('../../utils/filters');
|
||||
|
||||
module.exports = {
|
||||
"tags":["transcript"],
|
||||
"eleventyComputed": {
|
||||
"episode": (data) => extractSeasonEpisode(data.page.fileSlug).episode,
|
||||
"season": (data) => extractSeasonEpisode(data.page.fileSlug).season || 1,
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"tags":["transcript"]
|
||||
}
|
||||
Reference in New Issue
Block a user