mirror of
https://github.com/seigler/awesome-dash-platform
synced 2025-07-27 06:36:08 +00:00
feat: video static thumbnails (#164)
Closes #163 License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
parent
94e5cf2f44
commit
cd0e7d775e
6 changed files with 7 additions and 16 deletions
|
@ -8,13 +8,9 @@ const contentDir = path.join(__dirname, '../src/content')
|
|||
const indexesDir = path.join(__dirname, '../src/layouts/partials/indexes')
|
||||
|
||||
const processDataType = (data) => {
|
||||
const content = data.content.map((info, index) => {
|
||||
const content = data.content.map(info => {
|
||||
const { website, ...more } = info
|
||||
|
||||
if (data.title === 'Videos' && website.includes('youtube')) {
|
||||
more.youtube = website.replace('https://www.youtube.com/watch?v=', '')
|
||||
}
|
||||
|
||||
return {
|
||||
website: website,
|
||||
categories: [data.title.toLowerCase()],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue